diff options
author | Tom Smeding <tom.smeding@gmail.com> | 2020-06-18 22:18:51 +0200 |
---|---|---|
committer | Tom Smeding <tom.smeding@gmail.com> | 2020-06-18 22:18:51 +0200 |
commit | d900a5f985dd29db094d32bc1ec8648663e00967 (patch) | |
tree | 144c5970c62be6d4ee381475e6297e604a199f42 /modules | |
parent | fd90538fcc63fa55be516fa29c53ca82c5c98a23 (diff) |
blog: Use $template.html as template, not index.html
Diffstat (limited to 'modules')
-rw-r--r-- | modules/blog/template.js | 4 |
1 files changed, 2 insertions, 2 deletions
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("<!-- REPLACE TREE -->", generateTree(tree, pathRoot)); if (contentPath) { |