add support for utteranc.es (#205)

This commit is contained in:
Shreyansh Khajanchi
2019-08-21 13:03:15 +00:00
committed by Luiz F. A. de Prá
parent dea81ca434
commit 9b47893b34
3 changed files with 11 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
{{- if and (isset .Site.Params.utteranc "repo") (not (eq .Site.Params.utteranc.repo "" )) (eq (.Params.disable_comments | default false) false) -}}
<script src="https://utteranc.es/client.js"
repo= "{{ .Site.Params.utteranc.repo }}"
issue-term="{{ default "title" .Site.Params.utteranc.issueTerm }}"
theme="{{ default "github-light" .Site.Params.utteranc.theme }}"
crossorigin="anonymous"
async>
</script>
{{- end -}}

View File

@@ -34,6 +34,7 @@
{{ partial "posts/series.html" . }}
{{ partial "posts/disqus.html" . }}
{{ partial "posts/commento.html" . }}
{{ partial "posts/utteranc.html" . }}
</footer>
</article>