draft property

This commit is contained in:
2021-10-30 13:54:39 +01:00
parent ceb4a5c065
commit 819106d267
4 changed files with 36 additions and 0 deletions

View File

@ -6,6 +6,9 @@ layout: default
<ul class="post-list">
{% for post in site.posts %}
{% if post.draft %}
{% continue %}
{% endif %}
<li class='lang-{% if post.lang %}{{ post.lang }}{% else %}en{% endif %}'>
<h2>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>