[FEATURE] Utteranc.es support
This commit is contained in:
parent
723c94d0d4
commit
c86bdecb0a
5 changed files with 33 additions and 0 deletions
|
@ -25,4 +25,8 @@
|
|||
{{ template "_internal/disqus.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ if .Site.Params.UtterancesRepo }}
|
||||
{{ partial "utterances.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
11
layouts/partials/utterances.html
Normal file
11
layouts/partials/utterances.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue