Add support for Utterances comments

This commit is contained in:
Morgan Creekmore 2018-11-01 22:17:45 -05:00
parent d62ce18b7b
commit c5139fca26
No known key found for this signature in database
GPG key ID: 0A7464E68B129EB1
4 changed files with 17 additions and 1 deletions

View 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>

View file

@ -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 }}