diff --git a/CHANGELOG.md b/CHANGELOG.md index 222c7355..74a526d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - List page doesn't render nested list pages ([#365](https://github.com/jpanther/congo/issues/365)) - Pagination is duplicated on term pages ([#366](https://github.com/jpanther/congo/issues/366)) - Link to last pagination page sometimes displays twice +- Recent articles would sometimes display less than five articles ## [2.4.0] - 2022-11-10 diff --git a/layouts/partials/recent-articles.html b/layouts/partials/recent-articles.html index 4d79fc33..be1cff89 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)).Pages }} + {{ range first 5 (.Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) 5).Pages }} {{ partial "article-link.html" . }} {{ end }} {{ end }}