Allow a post or about page to disable comments

feature/cover-image
Sean Smith 7 years ago
parent 73bf689ba2
commit 0248810912

@ -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" . }}

@ -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" . }}

Loading…
Cancel
Save