fix: correct filter

This commit is contained in:
2023-03-16 14:42:57 +01:00
parent 81bcf5013a
commit f57a50f3a7
2 changed files with 4 additions and 4 deletions

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>