{{- $showComments := .Site.Params.comments.enabled -}} {{- if isset .Page.Params "comments" -}} {{- if not .Page.Params.comments -}} {{- $showComments = false -}} {{- end -}} {{- end -}} {{- if $showComments -}}
{{ partial (printf "comments/provider/%s" .Site.Params.comments.provider) . }}
{{ end }}