diff options
| author | Brian <subsoap@gmail.com> | 2021-03-01 09:07:24 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-01 22:37:24 +0530 |
| commit | e76154d418e09ac5604e60437e0278dabb786a5e (patch) | |
| tree | 4fd44c7e468ada3d8bd4fae54e67e24b714be63f | |
| parent | e0ed556818afd3f1c7a5509bfa1e9b11dcf365c9 (diff) | |
Allow selective disabling of PostNavLinks in front matter (#279)
| -rw-r--r-- | layouts/_default/single.html | 2 |
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"> |
