Possibility to disable comments in specific pages

This commit is contained in:
Andrea Grandi 2024-02-24 12:54:44 +01:00
parent 255abd5c88
commit 855e1939a7
No known key found for this signature in database

View File

@ -1,3 +1,5 @@
{{ if .Site.Params.comments.enabled }} {{ if .Site.Params.comments.enabled }}
{{ partial (printf "comments/provider/%s" .Site.Params.comments.provider) . }} {{ if not .Page.Params.comments.disabled }}
{{ partial (printf "comments/provider/%s" .Site.Params.comments.provider) . }}
{{ end }}
{{ end }} {{ end }}