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