[FEATURE] Utteranc.es support

This commit is contained in:
Leon 2021-01-17 17:16:45 +01:00
parent 723c94d0d4
commit c86bdecb0a
5 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,11 @@
{{ $theme := .Site.Params.UtterancesTheme | default "github-light" }}
{{ $label := .Site.Params.UtterancesLabel | default "" }}
{{ $issue := .Site.Params.UtterancesIssue | default "url" }}
<script src="https://utteranc.es/client.js"
repo="{{- .Site.Params.UtterancesRepo -}}"
theme="{{ $theme }}"
label="{{ $label }}"
issue-term="{{ $issue }}"
crossorigin="anonymous"
async>
</script>