simoncor.net/themes/hugo-coder/layouts/partials/posts/utterances.html

12 lines
511 B
HTML
Raw Normal View History

2020-07-16 22:43:30 +02:00
{{- if isset .Site.Params "utterances" -}}
{{- if and (isset .Site.Params.utterances "repo") (not (eq .Site.Params.utterances.repo "" )) (eq (.Params.disable_comments | default false) false) -}}
<script src="https://utteranc.es/client.js"
repo= "{{ .Site.Params.utterances.repo }}"
issue-term="{{ default "title" .Site.Params.utterances.issueTerm }}"
theme="{{ default "github-light" .Site.Params.utterances.theme }}"
crossorigin="anonymous"
async>
</script>
{{- end -}}
{{- end -}}