pipeline.ori: remove slash from key passed to addFilenameData.js
This commit is contained in:
parent
c55e106cdb
commit
ad9f56baac
|
|
@ -1,6 +1,10 @@
|
||||||
import {parse} from './filenameparser.js';
|
import {parse} from './filenameparser.js';
|
||||||
|
|
||||||
export default (value, key) => {
|
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);
|
const fnd = parse(key);
|
||||||
return {...value, fnd};
|
return {...value, fnd};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
(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!
|
||||||
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'))
|
pubfiles: Tree.filter(withfndata, (val, key) => val.fnd.tags?.includes('pub'))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue