We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 361e093 commit 3caf441Copy full SHA for 3caf441
components/templates/src/lib.rs
@@ -81,8 +81,12 @@ pub fn load_tera(path: &Path, config: &Config) -> Result<Tera> {
81
.map_err(|e| Error::chain("Error parsing templates from themes", e))?;
82
rewrite_theme_paths(&mut tera_theme, theme);
83
84
+ // TODO: add tests for theme-provided robots.txt (https://github.com/getzola/zola/pull/1722)
85
if theme_path.join("templates").join("robots.txt").exists() {
- tera_theme.add_template_file(theme_path.join("templates").join("robots.txt"), None)?;
86
+ tera_theme.add_template_file(
87
+ theme_path.join("templates").join("robots.txt"),
88
+ Some("robots.txt"),
89
+ )?;
90
}
91
tera.extend(&tera_theme)?;
92
0 commit comments