diff --git a/src/_components/articlesList.njk b/src/_components/articlesList.njk index 13a1be0..a53aec6 100644 --- a/src/_components/articlesList.njk +++ b/src/_components/articlesList.njk @@ -23,4 +23,9 @@ {% endfor %} +{% if showMore %} +
+ Voir l'ensemble des articles +
+{% endif %} diff --git a/src/_pages/blog/index.njk b/src/_pages/blog/index.njk index 02a9c61..e446387 100644 --- a/src/_pages/blog/index.njk +++ b/src/_pages/blog/index.njk @@ -10,7 +10,8 @@ eleventyNavigation: - {% set articlesList = collections.articles | filterDraft | head(-5) %} + {% set articlesList = collections.articles | filterDraft | head(-6) %} + {% set showMore = true %} {% include "articlesList.njk" %}