diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 1b15735..e6ff7f6 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -40,13 +40,13 @@ {{ end }} {{ if .Site.Params.enableDisqus }} - {{ if eq .Params.disabledisqus "true" }} + {{ if ne .Params.disabledisqus "true" }} {{ partial "disqus.html" . }} {{ end }} {{ end }} {{ if .Site.Params.enableDuoshuo }} - {{ if eq .Params.disableduoshuo "true" }} + {{ if ne .Params.disableduoshuo "true" }} {{ partial "duoshuo.html" . }} {{ end }} {{ end }} diff --git a/layouts/section/about.html b/layouts/section/about.html index 8cfc519..b601167 100644 --- a/layouts/section/about.html +++ b/layouts/section/about.html @@ -7,13 +7,13 @@ {{ .Content }} {{ if .Site.Params.enableDisqus }} - {{ if eq .Params.disabledisqus "true" }} + {{ if ne .Params.disabledisqus "true" }} {{ partial "disqus.html" . }} {{ end }} {{ end }} {{ if .Site.Params.enableDuoshuo }} - {{ if eq .Params.disableduoshuo "true" }} + {{ if ne .Params.disableduoshuo "true" }} {{ partial "duoshuo.html" . }} {{ end }} {{ end }}