mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-06-02 23:59:51 -04:00
Allow selective disabling of PostNavLinks in front matter (#279)
This commit is contained in:
parent
e0ed556818
commit
e76154d418
1 changed files with 1 additions and 1 deletions
|
@ -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">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue