summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian <subsoap@gmail.com>2021-03-01 09:07:24 -0800
committerGitHub <noreply@github.com>2021-03-01 22:37:24 +0530
commite76154d418e09ac5604e60437e0278dabb786a5e (patch)
tree4fd44c7e468ada3d8bd4fae54e67e24b714be63f
parente0ed556818afd3f1c7a5509bfa1e9b11dcf365c9 (diff)
Allow selective disabling of PostNavLinks in front matter (#279)
-rw-r--r--layouts/_default/single.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 3673ea6..2868942 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -44,7 +44,7 @@
{{- end }}
</ul>
{{- end }}
- {{- if .Site.Params.ShowPostNavLinks }}
+ {{- if (.Param "ShowPostNavLinks") }}
{{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
{{- if and (gt (len $pages) 1) (in $pages . ) }}
<nav class="paginav">