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