diff --git a/site.ori b/site.ori index 6797bbf..77c864e 100644 --- a/site.ori +++ b/site.ori @@ -10,9 +10,8 @@ spread the final result of this closure into the parent tree. */ ...{ - hast = Tree.map(pages, getLinkedFilesFromHtml.js) - //the [...new Set()] construct filters out duplicates - links: Tree.flat(hast, 2) → (a) => [...new Set(a)] + links: Tree.map(pages, getLinkedFilesFromHtml.js) + → (links) => Tree.flat(links, 2) → (a) => [...new Set(a)] //linksAsTree is a nested object representation of the paths. //can use that object as a mask on all to get a 'filtered' tree.