diff --git a/components/library/src/content/page.rs b/components/library/src/content/page.rs index d089517..5f4895b 100644 --- a/components/library/src/content/page.rs +++ b/components/library/src/content/page.rs @@ -228,8 +228,8 @@ impl Page { /// Renders the page using the default layout, unless specified in front-matter pub fn render_html(&self, tera: &Tera, config: &Config, library: &Library) -> Result { let tpl_name = match self.meta.template { - Some(ref l) => l.to_string(), - None => "page.html".to_string(), + Some(ref l) => l, + None => "page.html", }; let mut context = TeraContext::new();