fix: correct filter

pull/13/head
Nicolas Doby 2023-03-16 14:42:57 +01:00
parent 81bcf5013a
commit f57a50f3a7
2 changed files with 4 additions and 4 deletions

View File

@ -8,9 +8,9 @@ templateClass: tmpl-post
</aside> </aside>
{%- endif %} {%- endif %}
<div class="main-content"> <div class="main-content">
<h1>{{ title }}</h1> <h1> {% if draft %} Brouillon - {%- endif %} {{ title }}</h1>
<div
<div class="post-metadata"> class="post-metadata">
<div class="post-metadata__header"> <div class="post-metadata__header">
Le <time datetime="{{ page.date | htmlDateString }}">{{ page.date | readableDate }}</time> {{ authors | readableAuthors }} Le <time datetime="{{ page.date | htmlDateString }}">{{ page.date | readableDate }}</time> {{ authors | readableAuthors }}
</div> </div>

View File

@ -5,7 +5,7 @@ layout: home.njk
<h1>Articles en construction</h1> <h1>Articles en construction</h1>
{% set articlesList = collections.articles | onlyDraft %} {% set articlesList = collections.articles | onlyDraft %}
{% if articlesList.len > 0 %} {% if articlesList.length > 0 %}
{% include "articlesList.njk" %} {% include "articlesList.njk" %}
{% else %} {% else %}
<p>Tous les articles sont en ligne ! Retournez à <a href="/blog/">l'accueil</a> pour les consulter.</p> <p>Tous les articles sont en ligne ! Retournez à <a href="/blog/">l'accueil</a> pour les consulter.</p>