Add utterance.es support (#127)

A lightweight comments widget built on GitHub issues.
This commit is contained in:
Shreyansh Khajanchi
2019-06-24 04:45:51 +05:30
committed by Michael Noronha
parent 944fd12cea
commit 403871be5e
2 changed files with 18 additions and 0 deletions

View File

@@ -44,6 +44,11 @@ posts_navigation = true
# githubRepo = "githubUsername/repositoryName/tree/master"
small_banner_logo = false
[params.utteranc]
enable = true
repo = "mtn/cocoa-eh-hugo-theme"
issueTerm = "title"
[params.colors]
identifier = "#527fc1f"
identifier_dark = "#1a3152"

View File

@@ -91,6 +91,19 @@
</div>
{{ end }}
<!-- utteranc -->
{{ if .Site.Params.utteranc.enable }}
<div class="post bg-white">
<script src="https://utteranc.es/client.js"
repo= "{{ .Site.Params.utteranc.repo }}"
issue-term="{{ .Site.Params.utteranc.issueTerm }}"
theme="{{ default "github-light" .Site.Params.utteranc.theme }}"
crossorigin="anonymous"
async>
</script>
</div>
{{ end }}
{{ if .Site.Params.issoHost }}
<br>
<div class="isso" id="isso-thread"></div>