From 6a904413a8ce1efa1dbad7c02c966514e36ad2e0 Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Mon, 14 Nov 2022 13:22:15 +1100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20list=20page=20doesn't=20re?= =?UTF-8?q?nder=20nested=20list=20pages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #365 --- CHANGELOG.md | 1 + layouts/_default/list.html | 2 +- layouts/_default/term.html | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) 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 }}