Skip draft pages in archive

This commit is contained in:
Paweł Romanowski 2019-03-02 11:49:42 +00:00
parent 4848ae1c72
commit 0577f22e54

View file

@ -70,6 +70,9 @@
{% macro list_posts(pages) %}
<ul>
{%- for page in pages %}
{%- if page.draft %}
{% continue %}
{% endif -%}
<li class="post-list">
<a href="{{ page.permalink }}">
<span class="post-date">{{ page.date }}</span>