From ad9f56baac349dccf2ef18ab9dd336b797eef784 Mon Sep 17 00:00:00 2001 From: Hans Fast Date: Wed, 18 Mar 2026 15:55:02 +0100 Subject: [PATCH] pipeline.ori: remove slash from key passed to addFilenameData.js --- addFilenameData.js | 4 ++++ pipeline.ori | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/addFilenameData.js b/addFilenameData.js index 624db14..089dcc8 100644 --- a/addFilenameData.js +++ b/addFilenameData.js @@ -1,6 +1,10 @@ import {parse} from './filenameparser.js'; export default (value, key) => { + /* + * debug: log the key to see if it's getting a trailing slash + */ + //console.log(`key: ${key}`); const fnd = parse(key); return {...value, fnd}; } diff --git a/pipeline.ori b/pipeline.ori index cd37d55..48a98e5 100644 --- a/pipeline.ori +++ b/pipeline.ori @@ -24,7 +24,7 @@ (list): .. 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! - withfndata: Tree.map(documents, { value: (value, key) => addFilenameData.js(value, key)}) + withfndata: Tree.map(documents, { value: (value, key) => addFilenameData.js(value, Origami.slash.remove(key))}) pubfiles: Tree.filter(withfndata, (val, key) => val.fnd.tags?.includes('pub'))