themes/ezhil: restrict comments widget to prod [staging]

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2021-01-07 04:31:51 +05:30
parent 125229ffdd
commit 6537111df5
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@
{{ end }}
{{ end }}
</div>
{{- if isset .Site.Params "utterancesrepo" -}}
{{- if and (isset .Site.Params "utterancesrepo") (and (not .Site.IsServer) (not .Site.BuildDrafts)) -}}
{{ partial "utterances.html" . }}
{{- end -}}
{{- $.Scratch.Set "isDisqus" true -}}