From 608cf49c1b632739b761d123796e43258a74165d Mon Sep 17 00:00:00 2001 From: Hans Fast Date: Wed, 11 Mar 2026 15:33:46 +0100 Subject: [PATCH] site.ori/links: simplify --- site.ori | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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.