♻️ Use .Data.Pages in place of counting .Pages

This commit is contained in:
James Panther
2022-11-08 12:38:24 +11:00
parent 40426c8393
commit 0de45c0135
+1 -1
View File
@@ -24,7 +24,7 @@
{{ .Content | emojify }}
</div>
</section>
{{ if gt .Pages 0 }}
{{ if .Data.Pages }}
<section>
{{ if $.Params.groupByYear | default ($.Site.Params.list.groupByYear | default true) }}
{{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }}