mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 12:13:58 +00:00
feat(docs): add section pager (disable by default)
Disable docs prev/next pager unless `docs_section_pager = true` in `params.toml`. Requires setting `sections_weight = 01` in front matter of docs pages to control the order of their appearance in the prev/next links. Otherwise, prev/next links are generated by Hugo based on chronological date order - which will be an invalid order in the case of docs. See https://github.com/gohugoio/hugo/issues/2494
This commit is contained in:
1 parent
1e9bcd1dcb
commit
9eb5c0727d
1 file changed
+2
@@ -37,9 +37,11 @@
|
||||
|
||||
{{ partial "tags.html" . }}
|
||||
|
||||
{{ if site.Params.docs_section_pager }}
|
||||
<div class="article-widget">
|
||||
{{ partial "section_pager.html" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<div class="body-footer">
|
||||
|
||||
Reference in new issue
Block a user