feat(pagination): add option to disable prev/next navigation

* Feature: disable next/previous pagination buttons site-wide

* Moved the displayPagination to the layout level and adjusted the documentation.

* fix: improve pagination docs and layout whitespace

- Fix indentation in docs layout templates
- Add pagination documentation for all languages (fa, ja, zh-cn)
- Simplify documentation to be more succinct

---------

Co-authored-by: Xin <xin@imfing.com>
This commit is contained in:
ghac101
2026-01-24 13:42:49 +01:00
committed by GitHub
parent 05e28a716d
commit 7e56f0578a
6 changed files with 58 additions and 2 deletions

View File

@@ -15,7 +15,9 @@
{{ .Content }}
</div>
{{ partial "components/last-updated.html" . }}
{{ partial "components/pager.html" . }}
{{- if (site.Params.page.displayPagination | default true) -}}
{{- partial "components/pager.html" . -}}
{{- end -}}
{{ partial "components/comments.html" . }}
</main>
</article>