Merge pull request #27 from wwsean08/feature/disable-chat

Fixes #26 Allow a post or about page to disable comments
feature/cover-image
Hang Jiang 7 years ago committed by GitHub
commit 8c47cc15b1

@ -40,11 +40,15 @@
{{ end }} {{ end }}
{{ if .Site.Params.enableDisqus }} {{ if .Site.Params.enableDisqus }}
{{ partial "disqus.html" . }} {{ if eq .Params.disabledisqus "true" }}
{{ partial "disqus.html" . }}
{{ end }}
{{ end }} {{ end }}
{{ if .Site.Params.enableDuoshuo }} {{ if .Site.Params.enableDuoshuo }}
{{ partial "duoshuo.html" . }} {{ if eq .Params.disableduoshuo "true" }}
{{ partial "duoshuo.html" . }}
{{ end }}
{{ end }} {{ end }}
{{ partial "footer.html" . }} {{ partial "footer.html" . }}

@ -7,11 +7,15 @@
{{ .Content }} {{ .Content }}
{{ if .Site.Params.enableDisqus }} {{ if .Site.Params.enableDisqus }}
{{ partial "disqus.html" . }} {{ if eq .Params.disabledisqus "true" }}
{{ partial "disqus.html" . }}
{{ end }}
{{ end }} {{ end }}
{{ if .Site.Params.enableDuoshuo }} {{ if .Site.Params.enableDuoshuo }}
{{ partial "duoshuo.html" . }} {{ if eq .Params.disableduoshuo "true" }}
{{ partial "duoshuo.html" . }}
{{ end }}
{{ end }} {{ end }}
{{ partial "footer.html" . }} {{ partial "footer.html" . }}

Loading…
Cancel
Save