mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 08:15:44 +00:00
feat: migrate prev/next pager to Hugo's cascade system
New cascade front matter param: .Params.pager Close #2737 See #2395
This commit is contained in:
1 parent
45f971c352
commit
076464227c
4 files changed
+5
-4
No files matched your search
@@ -14,6 +14,7 @@ cascade:
|
||||
# Blog post options
|
||||
- _target:
|
||||
path: /post/**
|
||||
pager: true
|
||||
editable: true
|
||||
reading_time: true
|
||||
commentable: true
|
||||
|
||||
@@ -83,9 +83,9 @@
|
||||
{{ partial "tags.html" . }}
|
||||
|
||||
{{/* Show next/previous pages by default. */}}
|
||||
{{ if ne site.Params.book_section_pager false }}
|
||||
{{ if ne .Params.pager false }}
|
||||
<div class="article-widget">
|
||||
{{ partial "section_pager" . }}
|
||||
{{ partial "components/pager" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
File renamed without changes.
@@ -4,9 +4,9 @@
|
||||
{{ partial "page_author" . }}
|
||||
{{ partial "comments" . }}
|
||||
|
||||
{{ if site.Params.section_pager }}
|
||||
{{ if .Params.pager }}
|
||||
<div class="article-widget">
|
||||
{{ partial "section_pager" . }}
|
||||
{{ partial "components/pager" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
|
||||
Reference in new issue
Block a user