Skip to content

Commit

Permalink
♻️ Use .Data.Pages in place of counting .Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
jpanther committed Nov 8, 2022
1 parent 40426c8 commit 0de45c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h1 class="mt-0 text-4xl font-extrabold text-neutral-900 dark:text-neutral">{{ .
{{ .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 }}
Expand Down

0 comments on commit 0de45c0

Please sign in to comment.