diff --git a/CHANGELOG.md b/CHANGELOG.md index e5f92a7b..2b7a26e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ### Fixed +- 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)) ## [2.4.0] - 2022-11-10 diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 1148dca3..71b29930 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -37,7 +37,7 @@ {{ end }} {{ end }} {{ else }} - {{ range .Paginator.Pages }} + {{ range (.Paginate .Pages).Pages }} {{ partial "article-link.html" . }} {{ end }} {{ end }} diff --git a/layouts/_default/term.html b/layouts/_default/term.html index e5225164..666c84ce 100644 --- a/layouts/_default/term.html +++ b/layouts/_default/term.html @@ -26,7 +26,7 @@ {{ end }} {{ end }} {{ else }} - {{ range .Paginator.Pages }} + {{ range (.Paginate .Pages).Pages }} {{ partial "article-link.html" . }} {{ end }} {{ end }}