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 }}