From 2d324b3cee11c23aa2b50db77d4f38f59fc96357 Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Wed, 7 Nov 2018 20:37:25 +0100 Subject: [PATCH] Do not clone tpl name for pages --- components/library/src/content/page.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/library/src/content/page.rs b/components/library/src/content/page.rs index d0895177..5f4895b0 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();