fix: correct filter
parent
81bcf5013a
commit
f57a50f3a7
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue