Allow a post or about page to disable comments

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

@ -40,12 +40,16 @@
{{ end }} {{ end }}
{{ if .Site.Params.enableDisqus }} {{ if .Site.Params.enableDisqus }}
{{ if eq .Params.disabledisqus "true" }}
{{ partial "disqus.html" . }} {{ partial "disqus.html" . }}
{{ end }} {{ end }}
{{ end }}
{{ if .Site.Params.enableDuoshuo }} {{ if .Site.Params.enableDuoshuo }}
{{ if eq .Params.disableduoshuo "true" }}
{{ partial "duoshuo.html" . }} {{ partial "duoshuo.html" . }}
{{ end }} {{ end }}
{{ end }}
{{ partial "footer.html" . }} {{ partial "footer.html" . }}
</section> </section>

@ -7,12 +7,16 @@
{{ .Content }} {{ .Content }}
{{ if .Site.Params.enableDisqus }} {{ if .Site.Params.enableDisqus }}
{{ if eq .Params.disabledisqus "true" }}
{{ partial "disqus.html" . }} {{ partial "disqus.html" . }}
{{ end }} {{ end }}
{{ end }}
{{ if .Site.Params.enableDuoshuo }} {{ if .Site.Params.enableDuoshuo }}
{{ if eq .Params.disableduoshuo "true" }}
{{ partial "duoshuo.html" . }} {{ partial "duoshuo.html" . }}
{{ end }} {{ end }}
{{ end }}
{{ partial "footer.html" . }} {{ partial "footer.html" . }}
</section> </section>

Loading…
Cancel
Save