{{- if and (isset .Site.Params "utterancesrepo") (and (not (eq .Type "page")) (and (not .Site.IsServer) (not .Site.BuildDrafts))) -}}
<script src="https://utteranc.es/client.js"
        repo="{{ .Site.Params.UtterancesRepo }}"
        issue-term="pathname"
        theme="{{ .Site.Params.UtterancesTheme }}"
        crossorigin="anonymous"
        async>
</script>
{{- end -}}
