From 0de45c013526e13d02cf8e35b2e0d432a5d1dfdf Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Tue, 8 Nov 2022 12:38:24 +1100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Use=20`.Data.Pages`=20in?= =?UTF-8?q?=20place=20of=20counting=20`.Pages`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/_default/list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 5d503e57..56a3fc42 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -24,7 +24,7 @@ {{ .Content | emojify }} - {{ if gt .Pages 0 }} + {{ if .Data.Pages }}
{{ if $.Params.groupByYear | default ($.Site.Params.list.groupByYear | default true) }} {{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }}