diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 3673ea63..28689422 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -44,7 +44,7 @@
{{- end }}
{{- 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 . ) }}