diff options
-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) { |