site.ori: flatten for easier debugging
This commit is contained in:
parent
18948cc6df
commit
68f459630d
6
site.ori
6
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.ori>(page, all))
|
||||
renderedPages: Tree.map(final, (page) => <page.ori>(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/
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue