From 42cdeb24e802698f0ec9dd65b221a49e8012e5a9 Mon Sep 17 00:00:00 2001 From: Gautier <109429289+gcailly@users.noreply.github.com> Date: Sun, 11 Dec 2022 14:31:04 +0100 Subject: [PATCH] Update recent-articles.html --- layouts/partials/recent-articles.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/recent-articles.html b/layouts/partials/recent-articles.html index be1cff89..2e8c6179 100644 --- a/layouts/partials/recent-articles.html +++ b/layouts/partials/recent-articles.html @@ -1,6 +1,6 @@ {{ if .Site.Params.homepage.showRecent | default false }}

{{ i18n "shortcode.recent_articles" | emojify }}

- {{ range first 5 (.Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) 5).Pages }} + {{ range first .Site.Params.homepage.showRecentItems (.Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) .Site.Params.homepage.showRecentItems).Pages }} {{ partial "article-link.html" . }} {{ end }} {{ end }}