1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-19 04:35:31 -04:00

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

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>