{{ if .Site.Params.comments.enabled }} {{- $needsConsent := and .Site.Params.cookies.enabled .Site.Params.cookies.categories.functional -}} {{- if $needsConsent -}} {{/* Consent-gated comments - show placeholder until functional consent */}}
{{- else -}} {{/* No consent required - load comments normally */}} {{ partial (printf "comments/provider/%s" .Site.Params.comments.provider) . }} {{- end -}} {{ end }}
{{ T "cookies.commentsDisabled" }}