From d900a5f985dd29db094d32bc1ec8648663e00967 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Thu, 18 Jun 2020 22:18:51 +0200 Subject: blog: Use $template.html as template, not index.html --- modules/blog/template.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/blog') diff --git a/modules/blog/template.js b/modules/blog/template.js index 1f26e82..be6d474 100644 --- a/modules/blog/template.js +++ b/modules/blog/template.js @@ -40,9 +40,9 @@ function generateTree(tree, path) { async function template(repodir, contentPath) { const tree = await recursiveTree(repodir); - tree.delete("index"); + tree.delete("$template"); - let html = await fs.readFile(repodir + "/index.html", { encoding: "utf-8" }); + let html = await fs.readFile(repodir + "/$template.html", { encoding: "utf-8" }); html = html.replace("", generateTree(tree, pathRoot)); if (contentPath) { -- cgit v1.2.3-70-g09d2