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/ }