From b4c0ce495927efb8404816c0015b600bae168e1a Mon Sep 17 00:00:00 2001 From: Colin Date: Mon, 27 Jun 2022 19:10:52 -0700 Subject: [PATCH] rework draft system so they don't show up in RSS feed --- ...2-05-06-book-review-anarchy-state-and-utopia.md} | 4 +--- .../index.md | 2 -- .../minimal-core-no-state-change.jpeg | Bin .../minimal-core-state-change.jpeg | Bin .../minimal-magnetic-core.jpeg | Bin content/blog/DRAFT-template.md | 6 ++++++ content/blog/template.md | 8 -------- templates/blog-page.html | 6 +++++- templates/index.html | 2 +- 9 files changed, 13 insertions(+), 15 deletions(-) rename content/blog/{2022-05-06-DRAFT-book-review-anarchy-state-and-utopia.md => DRAFT-2022-05-06-book-review-anarchy-state-and-utopia.md} (98%) rename content/blog/{2022-05-26-home-built-computation => DRAFT-2022-05-26-home-built-computation}/index.md (99%) rename content/blog/{2022-05-26-home-built-computation => DRAFT-2022-05-26-home-built-computation}/minimal-core-no-state-change.jpeg (100%) rename content/blog/{2022-05-26-home-built-computation => DRAFT-2022-05-26-home-built-computation}/minimal-core-state-change.jpeg (100%) rename content/blog/{2022-05-26-home-built-computation => DRAFT-2022-05-26-home-built-computation}/minimal-magnetic-core.jpeg (100%) create mode 100644 content/blog/DRAFT-template.md delete mode 100644 content/blog/template.md diff --git a/content/blog/2022-05-06-DRAFT-book-review-anarchy-state-and-utopia.md b/content/blog/DRAFT-2022-05-06-book-review-anarchy-state-and-utopia.md similarity index 98% rename from content/blog/2022-05-06-DRAFT-book-review-anarchy-state-and-utopia.md rename to content/blog/DRAFT-2022-05-06-book-review-anarchy-state-and-utopia.md index 88bd732..aa987bd 100644 --- a/content/blog/2022-05-06-DRAFT-book-review-anarchy-state-and-utopia.md +++ b/content/blog/DRAFT-2022-05-06-book-review-anarchy-state-and-utopia.md @@ -1,8 +1,6 @@ +++ title = "Book Review: Anarchy, State, and Utopia" -date = 2022-05-06 -description = "remove extra.hidden to link this from the index" -extra.hidden = true +description = "add date field and remove DRAFT previx to link this from the index" +++ it occurred to me the other day that i don't really have a framework for explaining the state. diff --git a/content/blog/2022-05-26-home-built-computation/index.md b/content/blog/DRAFT-2022-05-26-home-built-computation/index.md similarity index 99% rename from content/blog/2022-05-26-home-built-computation/index.md rename to content/blog/DRAFT-2022-05-26-home-built-computation/index.md index 7d956a6..dec5d07 100644 --- a/content/blog/2022-05-26-home-built-computation/index.md +++ b/content/blog/DRAFT-2022-05-26-home-built-computation/index.md @@ -1,8 +1,6 @@ +++ title = "Towards Manufacturing Logic Devices at Home" -date = 2022-05-26 description = "" -extra.hidden = true +++ open source rules the software ecosystem. we have Linux, GNU, and all the applications on top. diff --git a/content/blog/2022-05-26-home-built-computation/minimal-core-no-state-change.jpeg b/content/blog/DRAFT-2022-05-26-home-built-computation/minimal-core-no-state-change.jpeg similarity index 100% rename from content/blog/2022-05-26-home-built-computation/minimal-core-no-state-change.jpeg rename to content/blog/DRAFT-2022-05-26-home-built-computation/minimal-core-no-state-change.jpeg diff --git a/content/blog/2022-05-26-home-built-computation/minimal-core-state-change.jpeg b/content/blog/DRAFT-2022-05-26-home-built-computation/minimal-core-state-change.jpeg similarity index 100% rename from content/blog/2022-05-26-home-built-computation/minimal-core-state-change.jpeg rename to content/blog/DRAFT-2022-05-26-home-built-computation/minimal-core-state-change.jpeg diff --git a/content/blog/2022-05-26-home-built-computation/minimal-magnetic-core.jpeg b/content/blog/DRAFT-2022-05-26-home-built-computation/minimal-magnetic-core.jpeg similarity index 100% rename from content/blog/2022-05-26-home-built-computation/minimal-magnetic-core.jpeg rename to content/blog/DRAFT-2022-05-26-home-built-computation/minimal-magnetic-core.jpeg diff --git a/content/blog/DRAFT-template.md b/content/blog/DRAFT-template.md new file mode 100644 index 0000000..47a0ab7 --- /dev/null +++ b/content/blog/DRAFT-template.md @@ -0,0 +1,6 @@ ++++ +title = "Template Blog Entry" +description = "remove DRAFT prefix and add a date field to link this from the index and feeds" ++++ + +digging around the site, huh? :-) diff --git a/content/blog/template.md b/content/blog/template.md deleted file mode 100644 index fedc0db..0000000 --- a/content/blog/template.md +++ /dev/null @@ -1,8 +0,0 @@ -+++ -title = "Template Blog Entry" -date = 2022-01-01 -description = "remove extra.hidden to link this from the index" -extra.hidden = true -+++ - -digging around the site, huh? :-) diff --git a/templates/blog-page.html b/templates/blog-page.html index 1381e45..4a4df44 100644 --- a/templates/blog-page.html +++ b/templates/blog-page.html @@ -28,7 +28,11 @@

{{ page.title }}

-

{{ page.date | date(format="%Y/%m/%d") }}

+ {% if page.date %} +

{{ page.date | date(format="%Y/%m/%d") }}

+ {% else %} +

draft

+ {% endif %} {{ page.content | safe }} {% endblock content %} diff --git a/templates/index.html b/templates/index.html index b4efb1f..3c3d4c0 100644 --- a/templates/index.html +++ b/templates/index.html @@ -9,7 +9,7 @@