From db7ccba54d97f4a823dab9dbf2bcac72a1891e96 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Thu, 18 Jun 2020 22:23:18 +0200 Subject: blog: Don't display 'index' in the tree --- modules/blog/template.js | 1 + 1 file changed, 1 insertion(+) 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" }); -- cgit v1.2.3-70-g09d2