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

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

Loading…
Cancel
Save