From fd4137a9eaa8a5bb0ccae0bef9a3da94418eb011 Mon Sep 17 00:00:00 2001 From: francis-du Date: Sun, 20 Dec 2020 01:36:58 +0800 Subject: [PATCH] fix: readerer get theme dir path bug --- src/renderer/html_handlebars/hbs_renderer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/html_handlebars/hbs_renderer.rs b/src/renderer/html_handlebars/hbs_renderer.rs index 918ec29e..6ac5985b 100644 --- a/src/renderer/html_handlebars/hbs_renderer.rs +++ b/src/renderer/html_handlebars/hbs_renderer.rs @@ -452,7 +452,7 @@ impl Renderer for HtmlHandlebars { let mut handlebars = Handlebars::new(); let theme_dir = match html_config.theme { - Some(ref theme) => theme.to_path_buf(), + Some(ref theme) => ctx.root.join(theme), None => ctx.root.join("theme"), };