Merge pull request #76 from leonhfr/feature/utterances

uteranc.es support
This commit is contained in:
Dmitry Kolosov 2021-01-23 15:51:51 +03:00 committed by GitHub
commit 21306c4ab5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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>