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

pull/353/head
James Panther 2022-11-08 12:38:24 +11:00
parent 40426c8393
commit 0de45c0135
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@
{{ .Content | emojify }} {{ .Content | emojify }}
</div> </div>
</section> </section>
{{ if gt .Pages 0 }} {{ if .Data.Pages }}
<section> <section>
{{ if $.Params.groupByYear | default ($.Site.Params.list.groupByYear | default true) }} {{ if $.Params.groupByYear | default ($.Site.Params.list.groupByYear | default true) }}
{{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }} {{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }}