summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2020-06-18 22:23:18 +0200
committerTom Smeding <tom.smeding@gmail.com>2020-06-18 22:23:18 +0200
commitdb7ccba54d97f4a823dab9dbf2bcac72a1891e96 (patch)
treef1fadd3d098a8cd065904c7902642698d4814cbd /modules
parent9c42abbfdd5411c2d76ae2345976e9cd1834518a (diff)
blog: Don't display 'index' in the tree
Diffstat (limited to 'modules')
-rw-r--r--modules/blog/template.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/blog/template.js b/modules/blog/template.js
index be6d474..38ce72e 100644
--- a/modules/blog/template.js
+++ b/modules/blog/template.js
@@ -41,6 +41,7 @@ function generateTree(tree, path) {
async function template(repodir, contentPath) {
const tree = await recursiveTree(repodir);
tree.delete("$template");
+ tree.delete("index");
let html = await fs.readFile(repodir + "/$template.html", { encoding: "utf-8" });