Allow selective disabling of PostNavLinks in front matter (#279)

This commit is contained in:
Brian 2021-03-01 09:07:24 -08:00 committed by GitHub
parent e0ed556818
commit e76154d418
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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