pipeline.ori/documents: clarification

This commit is contained in:
Hans Fast 2026-03-26 09:53:07 +01:00
parent 4561924030
commit 94f04f18a1
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@
// pubfiles: pubfiles.sh(allfiles) // pubfiles: pubfiles.sh(allfiles)
(list): .. (list): ..
allfiles: Tree.filter(list, (val, key) => key.endsWith('.md') && !key.startsWith('_')) allfiles: Tree.filter(list, (val, key) => key.endsWith('.md') && !key.startsWith('_'))
documents: Tree.map(allfiles, {value: (value) => Origami.document(value)}) //if I don't use the verbose syntax I get the filename characters as part of value! documents: Tree.map(allfiles, {value: (value) => Origami.document(value)}) //if I don't use the verbose syntax I get the filename characters as part of value, because Origami.document takes the key as its 'data' parameter.
withfilenamedata: Tree.map(documents, { value: (value, key) => ./filenamedata/addFilenameData.js(value, Origami.slash.remove(key))}) withfilenamedata: Tree.map(documents, { value: (value, key) => ./filenamedata/addFilenameData.js(value, Origami.slash.remove(key))})
//files now have a key `fnd` for 'filenamedata`. This contains address, title, and tags parsed from the filename. //files now have a key `fnd` for 'filenamedata`. This contains address, title, and tags parsed from the filename.