Skip to content

Commit

Permalink
Allow selective disabling of PostNavLinks in front matter (adityatela…
Browse files Browse the repository at this point in the history
  • Loading branch information
subsoap authored Mar 1, 2021
1 parent 96f561f commit b36eaab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ <h1 class="post-title">
{{- 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">
Expand Down

0 comments on commit b36eaab

Please sign in to comment.