Browse Source

Skip draft pages in archive

master
Paweł Romanowski 5 years ago
parent
commit
0577f22e54
  1. 3
      templates/macros/post.html

3
templates/macros/post.html

@ -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>

Loading…
Cancel
Save