From e8ff70ee5cec3f321ab16fbea785274131c0ea34 Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 2 Oct 2024 09:00:22 +0100 Subject: [PATCH] feat(#348): add growth stage taxonomy pages --- src/content/taxonomy/stage/budding.md | 10 ++++++++ src/content/taxonomy/stage/evergreen.md | 10 ++++++++ src/content/taxonomy/stage/seedling.md | 10 ++++++++ src/content/taxonomy/stage/stage.11tydata.js | 23 +++++++++++++++++++ .../taxonomy/stage/stub.md} | 6 ++--- 5 files changed, 55 insertions(+), 4 deletions(-) create mode 100644 src/content/taxonomy/stage/budding.md create mode 100644 src/content/taxonomy/stage/evergreen.md create mode 100644 src/content/taxonomy/stage/seedling.md create mode 100644 src/content/taxonomy/stage/stage.11tydata.js rename src/{stubs.md => content/taxonomy/stage/stub.md} (90%) diff --git a/src/content/taxonomy/stage/budding.md b/src/content/taxonomy/stage/budding.md new file mode 100644 index 00000000..82b7196e --- /dev/null +++ b/src/content/taxonomy/stage/budding.md @@ -0,0 +1,10 @@ +--- +title: Budding +sidebar_title: May still need refinement +sidebar_topic: 'stage/budding' +folder: + - writing + - {title: 'budding'} +--- + +TODO... diff --git a/src/content/taxonomy/stage/evergreen.md b/src/content/taxonomy/stage/evergreen.md new file mode 100644 index 00000000..4d30b309 --- /dev/null +++ b/src/content/taxonomy/stage/evergreen.md @@ -0,0 +1,10 @@ +--- +title: Evergreen +sidebar_title: Invested Ideas +sidebar_topic: 'stage/evergreen' +folder: + - writing + - {title: 'evergreen'} +--- + +TODO... diff --git a/src/content/taxonomy/stage/seedling.md b/src/content/taxonomy/stage/seedling.md new file mode 100644 index 00000000..0e91a7d6 --- /dev/null +++ b/src/content/taxonomy/stage/seedling.md @@ -0,0 +1,10 @@ +--- +title: Seedlings +sidebar_title: Rough and early ideas +sidebar_topic: 'stage/seedling' +folder: + - writing + - {title: 'seedling'} +--- + +TODO... diff --git a/src/content/taxonomy/stage/stage.11tydata.js b/src/content/taxonomy/stage/stage.11tydata.js new file mode 100644 index 00000000..ef4abc62 --- /dev/null +++ b/src/content/taxonomy/stage/stage.11tydata.js @@ -0,0 +1,23 @@ +/** + * Content Stages + * + */ +export default { + // Do not include in RSS Feed + excludeFromFeed: true, + + // Tagged as special topic type, these aren't regular pages + tags: ['type/stage'], + + // Do not display page meta data + hide_meta: true, + folder: ['series'], + + sidebar_component: 'topic', + + eleventyComputed: { + permalink(data) { + return `stage/${data.page.fileSlug}/`; + }, + }, +} diff --git a/src/stubs.md b/src/content/taxonomy/stage/stub.md similarity index 90% rename from src/stubs.md rename to src/content/taxonomy/stage/stub.md index dbd623fd..7aac41b8 100644 --- a/src/stubs.md +++ b/src/content/taxonomy/stage/stub.md @@ -2,15 +2,13 @@ title: Stub Posts sub_title: Like drafts, but public layout: layouts/page-post.njk -sidebar_component: topic sidebar_title: Works in Progress sidebar_topic: 'stage/stub' -hide_meta: true -tags: - - 'type/index' folder: - writing - {title: 'stubs'} +eleventyComputed: + permalink: /stubs/ --- Stubs are the precursor to future content often times little more than a collection of ideas and therefore hidden by default from the rest of this digital garden. Most have been created in order to allow interlinking from other pages via backlinks.