Allow adding drafts
This commit is contained in:
parent
9b5e826616
commit
c7f0ba9fb4
2 changed files with 7 additions and 1 deletions
|
|
@ -5,7 +5,9 @@
|
|||
<h2>Recent Posts</h2>
|
||||
<ul>
|
||||
{%- for post in (collections.posts | reverse) -%}
|
||||
<li{% if page.url == post.url %} aria-current="page"{% endif %}><time datetime="{{post.date}}">{{ post.date | toISODate }}</time> -- <a href="{{post.url}}">{{ post.data.title }}</a></li>
|
||||
{% if not post.data.draft %}
|
||||
<li{% if page.url == post.url %} aria-current="page"{% endif %}><time datetime="{{post.date}}">{{ post.date | toISODate }}</time> -- <a href="{{post.url}}">{{ post.data.title }}</a></li>
|
||||
{% endif %}
|
||||
{%- endfor -%}
|
||||
</ul>
|
||||
</nav>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue