Add support for Utterances comments
This commit is contained in:
parent
d62ce18b7b
commit
c5139fca26
4 changed files with 17 additions and 1 deletions
7
layouts/partials/page-single/comment/utterances.html
Normal file
7
layouts/partials/page-single/comment/utterances.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
<script src="https://utteranc.es/client.js"
|
||||
repo="{{ .Site.Params.UtterancesRepo }}"
|
||||
issue-term="{{ .Site.Params.UtterancesIssueTerm }}"
|
||||
theme="{{ .Site.Params.UtterancesIssueTheme }}"
|
||||
crossorigin="anonymous"
|
||||
async>
|
||||
</script>
|
|
@ -3,5 +3,7 @@
|
|||
{{ partial "page-single/comment/disqus.html" . }}
|
||||
{{ else if .Site.Params.GraphCommentId }}
|
||||
{{ partial "page-single/comment/graphcomment.html" . }}
|
||||
{{ else if .Site.Params.UtterancesRepo }}
|
||||
{{ partial "page-single/comment/utterances.html" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue