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>
{%- endif %}
<div class="main-content">
<h1>{{ title }}</h1>
<div class="post-metadata">
<h1> {% if draft %} Brouillon - {%- endif %} {{ title }}</h1>
<div
class="post-metadata">
<div class="post-metadata__header">
Le <time datetime="{{ page.date | htmlDateString }}">{{ page.date | readableDate }}</time> {{ authors | readableAuthors }}
</div>

View File

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