Integrate utteranc.es comment system

This commit is contained in:
Raphaël Lemaitre 2023-11-18 21:16:33 +01:00
parent 71cee08f56
commit aa2825a2a7
No known key found for this signature in database
GPG key ID: 90C3CD1F68B07B31
2 changed files with 47 additions and 0 deletions

View file

@ -135,5 +135,16 @@
<div id="commento"></div>
{{ end }}
{{ if .Site.Params.Utterances.Repository }}
<script src="https://utteranc.es/client.js"
repo="{{ .Site.Params.Utterances.Repository }}"
{{ if .Site.Params.Utterances.Label }}label="{{ .Site.Params.Utterances.Label }}"{{ end }}
issue-term="{{ .Site.Params.Utterances.IssueTerm }}"
theme="{{ .Site.Params.Utterances.Theme }}"
crossorigin="anonymous"
async>
</script>
{{ end }}
</main>
{{ end }}