summaryrefslogtreecommitdiff
path: root/modules/blog
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2020-06-18 22:18:51 +0200
committerTom Smeding <tom.smeding@gmail.com>2020-06-18 22:18:51 +0200
commitd900a5f985dd29db094d32bc1ec8648663e00967 (patch)
tree144c5970c62be6d4ee381475e6297e604a199f42 /modules/blog
parentfd90538fcc63fa55be516fa29c53ca82c5c98a23 (diff)
blog: Use $template.html as template, not index.html
Diffstat (limited to 'modules/blog')
-rw-r--r--modules/blog/template.js4
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) {