17 lines
691 B
JavaScript
17 lines
691 B
JavaScript
|
|
// Notes are private. Nothing under Notes/ is written to the site unless it is
|
||
|
|
// tagged `column` — the same marker .eleventy.js uses to define a column,
|
||
|
|
// which is what lets a column be authored here (do-people-think, how-to-write,
|
||
|
|
// systems) while the raw notes beside it stay unpublished.
|
||
|
|
//
|
||
|
|
// permalink: false processes the file but writes no output, so an untagged
|
||
|
|
// note has no URL at all rather than an unlinked-but-reachable one.
|
||
|
|
|
||
|
|
const isColumn = (data) => (data.tags || []).includes("column");
|
||
|
|
|
||
|
|
module.exports = {
|
||
|
|
eleventyComputed: {
|
||
|
|
permalink: (data) => (isColumn(data) ? data.permalink : false),
|
||
|
|
eleventyExcludeFromCollections: (data) => !isColumn(data),
|
||
|
|
},
|
||
|
|
};
|