diff --git a/layouts/partials/page-single/post-related.html b/layouts/partials/page-single/post-related.html index 7f25ce0..2a1f726 100644 --- a/layouts/partials/page-single/post-related.html +++ b/layouts/partials/page-single/post-related.html @@ -1,3 +1,4 @@ +{{ if .Site.Params.relatedPosts }} {{ $related := .Site.RegularPages.Related . | first 5 }} {{ with $related -}}
-{{- end }} +{{ end }} +{{ end }}