From 0a242325b939dfbd85adad68b0b75a0fb406c47a Mon Sep 17 00:00:00 2001 From: notplants Date: Mon, 25 Jul 2022 11:01:23 +0200 Subject: [PATCH] wiki level --- src/pages/wiki.js | 3 ++- src/templates/mdx-post.js | 1 + static/content/wiki/P4P.md | 1 + static/content/wiki/alternative-epistemologies.md | 1 + static/content/wiki/cms-and-static-site-generators.md | 1 + static/content/wiki/collapse.md | 1 + static/content/wiki/disconnection-practices.md | 1 + static/content/wiki/flat-earth.md | 1 + static/content/wiki/flower-sticks.md | 1 + static/content/wiki/herbalism.md | 1 + static/content/wiki/low-energy-computing.md | 1 + static/content/wiki/meta.md | 1 + static/content/wiki/misc.md | 1 + static/content/wiki/mycology.md | 1 + static/content/wiki/network-art.md | 1 + static/content/wiki/neurodivergence.md | 1 + static/content/wiki/offgrid.md | 1 + static/content/wiki/permaculture.md | 1 + static/content/wiki/poems-for-end-times.md | 1 + static/content/wiki/reading.md | 1 + static/content/wiki/recipes.md | 1 + static/content/wiki/scuttlebutt.md | 1 + static/content/wiki/solpunk.md | 1 + static/content/wiki/spiritual-texts.md | 1 + static/content/wiki/technical.md | 1 + static/content/wiki/tools.md | 1 + static/content/wiki/trash.md | 1 + static/content/wiki/trika.md | 1 + static/content/wiki/web-of-links.md | 1 + 29 files changed, 30 insertions(+), 1 deletion(-) diff --git a/src/pages/wiki.js b/src/pages/wiki.js index 1ae9107..a1efafb 100755 --- a/src/pages/wiki.js +++ b/src/pages/wiki.js @@ -19,7 +19,7 @@ const IndexPage = ({ }) => { edges.sort((edge1, edge2) => edge1.node.frontmatter.title.length > edge2.node.frontmatter.title.length) const Posts = edges - .filter(edge => !!edge.node.frontmatter.date) // You can filter your posts based on some criteria + .filter(edge => !!edge.node.frontmatter.date && edge.node.frontmatter.level === "1") // You can filter your posts based on some criteria .map(edge => ) return ( @@ -49,6 +49,7 @@ export const pageQuery = graphql` path title draft + level } } } diff --git a/src/templates/mdx-post.js b/src/templates/mdx-post.js index 7ee3e1f..5980595 100755 --- a/src/templates/mdx-post.js +++ b/src/templates/mdx-post.js @@ -133,6 +133,7 @@ export const pageQuery = graphql` path title draft + level } } } diff --git a/static/content/wiki/P4P.md b/static/content/wiki/P4P.md index b5af642..e691260 100644 --- a/static/content/wiki/P4P.md +++ b/static/content/wiki/P4P.md @@ -3,6 +3,7 @@ path: "/posts/p4p" date: "2022-07-19T23:19:51.246Z" title: "P4P" type: "wiki" +level: "1" style: "prose" image: "" description: "" diff --git a/static/content/wiki/alternative-epistemologies.md b/static/content/wiki/alternative-epistemologies.md index e3f1b02..6c512b0 100644 --- a/static/content/wiki/alternative-epistemologies.md +++ b/static/content/wiki/alternative-epistemologies.md @@ -3,6 +3,7 @@ path: "/posts/alternative-epistemologies" date: "2022-07-19T23:19:51.246Z" title: "Alternative Epistemologies" type: "wiki" +level: "1" style: "prose" image: "" description: "" diff --git a/static/content/wiki/cms-and-static-site-generators.md b/static/content/wiki/cms-and-static-site-generators.md index e72e7ef..3ffd3a7 100644 --- a/static/content/wiki/cms-and-static-site-generators.md +++ b/static/content/wiki/cms-and-static-site-generators.md @@ -3,6 +3,7 @@ path: "/posts/cms" date: "2022-07-19T23:19:51.246Z" title: "CMS & Static Site Generators" type: "wiki" +level: "1" style: "prose" image: "" description: "" diff --git a/static/content/wiki/collapse.md b/static/content/wiki/collapse.md index 2d432bd..d55b2e9 100644 --- a/static/content/wiki/collapse.md +++ b/static/content/wiki/collapse.md @@ -3,6 +3,7 @@ path: "/posts/collapse" date: "2022-07-19T23:19:51.246Z" title: "Collapse" type: "wiki" +level: "1" style: "prose" image: "" description: "" diff --git a/static/content/wiki/disconnection-practices.md b/static/content/wiki/disconnection-practices.md index 30996f6..b144e2e 100644 --- a/static/content/wiki/disconnection-practices.md +++ b/static/content/wiki/disconnection-practices.md @@ -3,6 +3,7 @@ path: "/posts/disconnection-practices" date: "2022-07-19T23:19:51.246Z" title: "Disconnection Practices" type: "wiki" +level: "1" style: "prose" image: "" description: "" diff --git a/static/content/wiki/flat-earth.md b/static/content/wiki/flat-earth.md index 9f4a44c..1de4c15 100644 --- a/static/content/wiki/flat-earth.md +++ b/static/content/wiki/flat-earth.md @@ -3,6 +3,7 @@ path: "/posts/flat-earth" date: "2022-07-19T23:19:51.246Z" title: "Flat Earth" type: "wiki" +level: "1" style: "prose" image: "" description: "" diff --git a/static/content/wiki/flower-sticks.md b/static/content/wiki/flower-sticks.md index 7068f17..960ab30 100644 --- a/static/content/wiki/flower-sticks.md +++ b/static/content/wiki/flower-sticks.md @@ -3,6 +3,7 @@ path: "/posts/flower-sticks" date: "2022-07-19T23:19:51.246Z" title: "Flower Sticks" type: "wiki" +level: "1" style: "prose" image: "" description: "" diff --git a/static/content/wiki/herbalism.md b/static/content/wiki/herbalism.md index 0ec9e75..aee7348 100644 --- a/static/content/wiki/herbalism.md +++ b/static/content/wiki/herbalism.md @@ -3,6 +3,7 @@ path: "/posts/herbalism" date: "2022-07-19T23:19:51.246Z" title: "Herbalism" type: "wiki" +level: "1" style: "prose" image: "" description: "" diff --git a/static/content/wiki/low-energy-computing.md b/static/content/wiki/low-energy-computing.md index 343019e..b7f8f5e 100644 --- a/static/content/wiki/low-energy-computing.md +++ b/static/content/wiki/low-energy-computing.md @@ -3,6 +3,7 @@ path: "/posts/low-energy-computing" date: "2022-07-19T23:19:51.246Z" title: "Low-Energy Computing" type: "wiki" +level: "1" style: "prose" image: "" description: "" diff --git a/static/content/wiki/meta.md b/static/content/wiki/meta.md index 70a5ca9..2a98ddf 100644 --- a/static/content/wiki/meta.md +++ b/static/content/wiki/meta.md @@ -3,6 +3,7 @@ path: "/posts/meta" date: "2022-07-19T23:19:51.246Z" title: "Meta" type: "wiki" +level: "1" style: "prose" image: "" description: "" diff --git a/static/content/wiki/misc.md b/static/content/wiki/misc.md index 989b429..b83f255 100644 --- a/static/content/wiki/misc.md +++ b/static/content/wiki/misc.md @@ -3,6 +3,7 @@ path: "/posts/misc" date: "2022-07-19T23:19:51.246Z" title: "Misc" type: "wiki" +level: "1" style: "prose" image: "" description: "" diff --git a/static/content/wiki/mycology.md b/static/content/wiki/mycology.md index dac440c..dedbaa6 100644 --- a/static/content/wiki/mycology.md +++ b/static/content/wiki/mycology.md @@ -3,6 +3,7 @@ path: "/posts/mycology" date: "2022-07-19T23:19:51.246Z" title: "Mycology" type: "wiki" +level: "1" style: "prose" image: "" description: "" diff --git a/static/content/wiki/network-art.md b/static/content/wiki/network-art.md index e562eb0..12eb2ab 100644 --- a/static/content/wiki/network-art.md +++ b/static/content/wiki/network-art.md @@ -3,6 +3,7 @@ path: "/posts/network-art" date: "2022-07-19T23:19:51.246Z" title: "Network Art" type: "wiki" +level: "1" style: "prose" image: "" description: "" diff --git a/static/content/wiki/neurodivergence.md b/static/content/wiki/neurodivergence.md index 8942f87..4b124ad 100644 --- a/static/content/wiki/neurodivergence.md +++ b/static/content/wiki/neurodivergence.md @@ -3,6 +3,7 @@ path: "/posts/neurodivergence" date: "2022-07-19T23:19:51.246Z" title: "Neurodivergence" type: "wiki" +level: "1" style: "prose" image: "" description: "" diff --git a/static/content/wiki/offgrid.md b/static/content/wiki/offgrid.md index e72c19a..7a48b33 100644 --- a/static/content/wiki/offgrid.md +++ b/static/content/wiki/offgrid.md @@ -3,6 +3,7 @@ path: "/posts/offgrid" date: "2022-07-19T23:19:51.246Z" title: "Offgrid" type: "wiki" +level: "1" style: "prose" image: "" description: "" diff --git a/static/content/wiki/permaculture.md b/static/content/wiki/permaculture.md index 8aefcbb..a273a20 100644 --- a/static/content/wiki/permaculture.md +++ b/static/content/wiki/permaculture.md @@ -3,6 +3,7 @@ path: "/posts/permaculture" date: "2022-07-19T23:19:51.246Z" title: "Permaculture" type: "wiki" +level: "1" style: "prose" image: "" description: "" diff --git a/static/content/wiki/poems-for-end-times.md b/static/content/wiki/poems-for-end-times.md index cda95fb..37770a1 100644 --- a/static/content/wiki/poems-for-end-times.md +++ b/static/content/wiki/poems-for-end-times.md @@ -3,6 +3,7 @@ path: "/posts/poemsforendtimes" date: "2022-07-19T23:19:51.246Z" title: "Poetry" type: "wiki" +level: "1" style: "prose" image: "" description: "" diff --git a/static/content/wiki/reading.md b/static/content/wiki/reading.md index e12acb5..b595e76 100644 --- a/static/content/wiki/reading.md +++ b/static/content/wiki/reading.md @@ -3,6 +3,7 @@ path: "/posts/reading" date: "2022-07-19T23:19:51.246Z" title: "Reading" type: "wiki" +level: "1" style: "prose" image: "" description: "" diff --git a/static/content/wiki/recipes.md b/static/content/wiki/recipes.md index b09ceb3..1769c3e 100644 --- a/static/content/wiki/recipes.md +++ b/static/content/wiki/recipes.md @@ -3,6 +3,7 @@ path: "/posts/recipes" date: "2022-07-19T23:19:51.246Z" title: "Recipes" type: "wiki" +level: "1" style: "prose" image: "" description: "" diff --git a/static/content/wiki/scuttlebutt.md b/static/content/wiki/scuttlebutt.md index 0b6a53e..9ac82c5 100644 --- a/static/content/wiki/scuttlebutt.md +++ b/static/content/wiki/scuttlebutt.md @@ -3,6 +3,7 @@ path: "/posts/scuttlebutt" date: "2022-07-19T23:19:51.246Z" title: "Scuttlebutt" type: "wiki" +level: "1" style: "prose" image: "" description: "" diff --git a/static/content/wiki/solpunk.md b/static/content/wiki/solpunk.md index ee7f7a2..d74e6e9 100644 --- a/static/content/wiki/solpunk.md +++ b/static/content/wiki/solpunk.md @@ -3,6 +3,7 @@ path: "/posts/solpunk" date: "2022-07-19T23:19:51.246Z" title: "Solpunk" type: "wiki" +level: "1" style: "prose" image: "" description: "" diff --git a/static/content/wiki/spiritual-texts.md b/static/content/wiki/spiritual-texts.md index ddb6ace..076316f 100644 --- a/static/content/wiki/spiritual-texts.md +++ b/static/content/wiki/spiritual-texts.md @@ -3,6 +3,7 @@ path: "/posts/spiritual-texts" date: "2022-07-19T23:19:51.246Z" title: "Svadhyaya (Spiritual Study)" type: "wiki" +level: "1" style: "prose" image: "" description: "" diff --git a/static/content/wiki/technical.md b/static/content/wiki/technical.md index fee7cfa..8c25e5e 100644 --- a/static/content/wiki/technical.md +++ b/static/content/wiki/technical.md @@ -3,6 +3,7 @@ path: "/posts/technical" date: "2022-07-19T23:19:51.246Z" title: "Technical" type: "wiki" +level: "1" style: "prose" image: "" description: "" diff --git a/static/content/wiki/tools.md b/static/content/wiki/tools.md index 62a6e4c..0c64ad0 100644 --- a/static/content/wiki/tools.md +++ b/static/content/wiki/tools.md @@ -3,6 +3,7 @@ path: "/posts/tools" date: "2022-07-19T23:19:51.246Z" title: "Tools" type: "wiki" +level: "1" style: "prose" image: "" description: "" diff --git a/static/content/wiki/trash.md b/static/content/wiki/trash.md index 99e38b5..8c4ae17 100644 --- a/static/content/wiki/trash.md +++ b/static/content/wiki/trash.md @@ -3,6 +3,7 @@ path: "/posts/trash" date: "2022-07-19T23:19:51.246Z" title: "Trash" type: "wiki" +level: "1" style: "prose" image: "" description: "" diff --git a/static/content/wiki/trika.md b/static/content/wiki/trika.md index b440d4e..7af0963 100644 --- a/static/content/wiki/trika.md +++ b/static/content/wiki/trika.md @@ -3,6 +3,7 @@ path: "/posts/trika" date: "2022-07-19T23:19:51.246Z" title: "Trika Shaivism" type: "wiki" +level: "1" style: "prose" image: "" description: "" diff --git a/static/content/wiki/web-of-links.md b/static/content/wiki/web-of-links.md index 9f5d761..65319ba 100644 --- a/static/content/wiki/web-of-links.md +++ b/static/content/wiki/web-of-links.md @@ -3,6 +3,7 @@ path: "/posts/web-of-links" date: "2022-07-19T23:19:51.246Z" title: "Web Of Links" type: "wiki" +level: "1" style: "prose" image: "" description: ""