mirror of
https://github.com/imfing/hextra.git
synced 2025-06-19 23:01:19 -04:00
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:
@ -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" . -}}
|
||||
|
Reference in New Issue
Block a user