rework draft system so they don't show up in RSS feed

This commit is contained in:
Colin 2022-06-27 19:10:52 -07:00
parent a027e6aa12
commit b4c0ce4959
9 changed files with 13 additions and 15 deletions

View File

@ -1,8 +1,6 @@
+++ +++
title = "Book Review: Anarchy, State, and Utopia" title = "Book Review: Anarchy, State, and Utopia"
date = 2022-05-06 description = "add date field and remove DRAFT previx to link this from the index"
description = "remove extra.hidden to link this from the index"
extra.hidden = true
+++ +++
it occurred to me the other day that i don't really have a framework for explaining the state. it occurred to me the other day that i don't really have a framework for explaining the state.

View File

@ -1,8 +1,6 @@
+++ +++
title = "Towards Manufacturing Logic Devices at Home" title = "Towards Manufacturing Logic Devices at Home"
date = 2022-05-26
description = "" description = ""
extra.hidden = true
+++ +++
open source rules the software ecosystem. we have Linux, GNU, and all the applications on top. open source rules the software ecosystem. we have Linux, GNU, and all the applications on top.

View File

@ -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? :-)

View File

@ -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? :-)

View File

@ -28,7 +28,11 @@
<h1> <h1>
{{ page.title }} {{ page.title }}
</h1> </h1>
<p class="date">{{ page.date | date(format="%Y/%m/%d") }}</p> {% if page.date %}
<p class="date">{{ page.date | date(format="%Y/%m/%d") }}</p>
{% else %}
<p class="date">draft</p>
{% endif %}
{{ page.content | safe }} {{ page.content | safe }}
{% endblock content %} {% endblock content %}

View File

@ -9,7 +9,7 @@
<span class="listing"> <span class="listing">
<ul> <ul>
{% for page in blog.pages %} {% for page in blog.pages %}
{% if not page.extra.hidden %} {% if page.date %}
<li> <li>
<div class="title"> <div class="title">
<a href="{{ page.permalink | safe }}">{{ page.title }}</a> <a href="{{ page.permalink | safe }}">{{ page.title }}</a>