From 11f7a7e20a46536c3deffe83090a1e9b58cc716b Mon Sep 17 00:00:00 2001 From: Nicolas Doby Date: Mon, 9 Oct 2023 16:59:49 +0200 Subject: [PATCH] fix: add a link to show all articles --- src/_components/articlesList.njk | 5 +++++ src/_pages/blog/index.njk | 3 ++- src/blog_assets/css/index.scss | 7 +++---- 3 files changed, 10 insertions(+), 5 deletions(-) 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" %}