add disablePostNavigation param
This commit is contained in:
parent
ebaaed2412
commit
b8cea6f36b
2 changed files with 3 additions and 0 deletions
|
@ -53,6 +53,7 @@ disqusShortname = 'YOUR_DISQUS_SHORTNAME' # use disqus comments
|
||||||
|
|
||||||
# misc
|
# misc
|
||||||
disableHLJS = true # disable highlight.js
|
disableHLJS = true # disable highlight.js
|
||||||
|
disablePostNavigation = true # disable post navigation
|
||||||
monoDarkIcon = true # show monochrome dark mode icon
|
monoDarkIcon = true # show monochrome dark mode icon
|
||||||
gravatarCdn = 'GRAVATAR_CDN_LINK' # e.g. 'https://cdn.v2ex.com/gravatar/'
|
gravatarCdn = 'GRAVATAR_CDN_LINK' # e.g. 'https://cdn.v2ex.com/gravatar/'
|
||||||
graphCommentId = "YOUR_GRAPH_COMMENT_ID" # use graph comment (disqus alternative)
|
graphCommentId = "YOUR_GRAPH_COMMENT_ID" # use graph comment (disqus alternative)
|
||||||
|
|
|
@ -35,6 +35,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<!-- Post Nav -->
|
<!-- Post Nav -->
|
||||||
|
{{ if not site.Params.disablePostNavigation }}<!---->
|
||||||
{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}<!---->
|
{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}<!---->
|
||||||
{{ if and (gt (len $pages) 1) (in $pages . ) }}
|
{{ if and (gt (len $pages) 1) (in $pages . ) }}
|
||||||
<nav class="mt-24 flex rounded-lg bg-black/[3%] text-lg dark:bg-white/[8%]">
|
<nav class="mt-24 flex rounded-lg bg-black/[3%] text-lg dark:bg-white/[8%]">
|
||||||
|
@ -53,6 +54,7 @@
|
||||||
>
|
>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</nav>
|
</nav>
|
||||||
|
{{ end }}<!---->
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<!-- Disqus -->
|
<!-- Disqus -->
|
||||||
|
|
Loading…
Reference in a new issue