mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 03:53:30 +08:00
Possibility to disable comments in specific pages
This commit is contained in:
parent
255abd5c88
commit
855e1939a7
@ -1,3 +1,5 @@
|
|||||||
{{ if .Site.Params.comments.enabled }}
|
{{ if .Site.Params.comments.enabled }}
|
||||||
|
{{ if not .Page.Params.comments.disabled }}
|
||||||
{{ partial (printf "comments/provider/%s" .Site.Params.comments.provider) . }}
|
{{ partial (printf "comments/provider/%s" .Site.Params.comments.provider) . }}
|
||||||
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
Loading…
Reference in New Issue
Block a user