From d30991a03935c2d6aaec4766d27d232a262816ad Mon Sep 17 00:00:00 2001 From: Mivinci <1366723936@qq.com> Date: Mon, 29 Nov 2021 01:19:59 +0800 Subject: [PATCH] bug fix --- layouts/_default/single.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index ca8b9d2..7804152 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -36,7 +36,7 @@ {{ partial "mermaid.html" . }} {{ end }} -{{ if and .Site.Params.commentOnAllPosts (ne .Params.comment false) }} +{{ if or .Params.comment (and .Site.Params.commentOnAllPosts (ne .Params.comment false)) }} {{ if eq .Site.Params.comment "disqus"}} {{ partial "disqus.html" . }} {{ end }}