feat: allow authors to set the value of reversePagination in page front matter (#674)

* Allow authors to set the reverse pagination setting of a page using front matter

* Adding some documentation of the reversePagination front matter custom parameter along with an example of how to use it and why you might want to use it
This commit is contained in:
Keith Stockdale
2025-05-23 01:23:25 +01:00
committed by GitHub
parent 51b5de23c7
commit 72c383ef5c
2 changed files with 71 additions and 1 deletions

View File

@ -40,7 +40,7 @@
</div>
{{- partial "components/last-updated.html" . -}}
{{- if (site.Params.blog.article.displayPagination | default true) -}}
{{- .Scratch.Set "reversePagination" true -}}
{{- .Scratch.Set "reversePagination" (.Params.reversePagination | default true) -}}
{{- partial "components/pager.html" . -}}
{{ end }}
{{- partial "components/comments.html" . -}}