From 68f459630d9d76388fe55882eaca40768cdfbf56 Mon Sep 17 00:00:00 2001 From: Hans Fast Date: Wed, 18 Mar 2026 13:09:16 +0100 Subject: [PATCH] site.ori: flatten for easier debugging --- site.ori | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/site.ori b/site.ori index 5d92396..0380eea 100644 --- a/site.ori +++ b/site.ori @@ -1,6 +1,5 @@ (all) => { //put the file selection part in a closure, so that the list of all files is kept private. - pages: { /* list is all the files in current directory. allfiles is all source files: ending with `.md` and not starting with `_`. @@ -48,9 +47,8 @@ privateRemoved: Tree.map(withSummary, removePrivate.js) final: (all ? withSummary : privateRemoved) - }.final - renderedPages: Tree.map(pages, (page) => (page, all)) + renderedPages: Tree.map(final, (page) => (page, all)) /* the rendered pages contain links and images. We want to find those, and insert a tree of their maps into the output. @@ -68,6 +66,6 @@ /* Now, I think I have enough to build both the individual pages and the index page! */ - index.html: indexPage.ori(pages, all) + index.html: indexPage.ori(final, all) ...renderedPages/ }