rework draft system so they don't show up in RSS feed
This commit is contained in:
parent
a027e6aa12
commit
b4c0ce4959
|
@ -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.
|
|
@ -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.
|
Before Width: | Height: | Size: 1.3 MiB After Width: | Height: | Size: 1.3 MiB |
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 508 KiB After Width: | Height: | Size: 508 KiB |
|
@ -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? :-)
|
|
@ -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? :-)
|
|
@ -28,7 +28,11 @@
|
|||
<h1>
|
||||
{{ page.title }}
|
||||
</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 }}
|
||||
{% endblock content %}
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<span class="listing">
|
||||
<ul>
|
||||
{% for page in blog.pages %}
|
||||
{% if not page.extra.hidden %}
|
||||
{% if page.date %}
|
||||
<li>
|
||||
<div class="title">
|
||||
<a href="{{ page.permalink | safe }}">{{ page.title }}</a>
|
||||
|
|
Loading…
Reference in New Issue