allow comments to be disabled on individual posts

This commit is contained in:
2020-03-18 20:14:53 -04:00
parent 598e706f74
commit fa1161cd27
7 changed files with 19 additions and 21 deletions
+1 -1
View File
@@ -18,7 +18,7 @@
{{ .Content }}
</div>
{{ if eq hugo.Environment "production" }}
{{ if and (ne .Params.comments false) (eq hugo.Environment "production") }}
<div id="comments">
{{ partial "scripts/utterances" . }}
</div>