Skip to content
Permalink
Browse files

add support for utteranc.es (#205)

  • Loading branch information...
shreyanshk authored and luizdepra committed Aug 21, 2019
1 parent dea81ca commit 9b47893b348c4c3f45b102d5c3b556da8336031e
Showing with 11 additions and 0 deletions.
  1. +1 −0 CONTRIBUTORS.md
  2. +9 −0 layouts/partials/posts/utteranc.html
  3. +1 −0 layouts/posts/single.html
@@ -42,3 +42,4 @@
- [Ryan](https://github.com/alrayyes)
- [Naim A.](https://github.com/naim94a)
- [Alexander Rohde](https://github.com/a1x42)
- [Shreyansh Khajanchi](https://shreyanshja.in)
@@ -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 -}}
@@ -34,6 +34,7 @@ <h1 class="title">{{ .Title }}</h1>
{{ partial "posts/series.html" . }}
{{ partial "posts/disqus.html" . }}
{{ partial "posts/commento.html" . }}
{{ partial "posts/utteranc.html" . }}
</footer>
</article>

0 comments on commit 9b47893

Please sign in to comment.
You can’t perform that action at this time.