1
0
Fork 0

add disablePostNavigation param

This commit is contained in:
nanxiaobei 2023-08-15 04:41:30 +08:00
parent ebaaed2412
commit b8cea6f36b
2 changed files with 3 additions and 0 deletions

View File

@ -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)

View File

@ -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 -->