fix: update comment parameters for consistency in comment partial

This commit is contained in:
geekifan
2025-05-11 18:53:34 +08:00
parent ea46994368
commit aa903325c4

View File

@ -1,4 +1,4 @@
{{ $enableComment := .Params.comment | default .Site.Params.comment.enable }}
{{ if and $enableComment .Site.Params.comment.provider }}
{{ partial (printf "comments/%s.html" .Site.Params.comment.provider) . }}
{{ $enableComment := .Params.comments | default .Site.Params.comments.enable }}
{{ if and $enableComment .Site.Params.comments.provider }}
{{ partial (printf "comments/%s.html" .Site.Params.comments.provider) . }}
{{ end }}