mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 11:46:41 +02:00
Add utterance.es support (#127)
A lightweight comments widget built on GitHub issues.
This commit is contained in:

committed by
Michael Noronha

parent
944fd12cea
commit
403871be5e
@@ -44,6 +44,11 @@ posts_navigation = true
|
|||||||
# githubRepo = "githubUsername/repositoryName/tree/master"
|
# githubRepo = "githubUsername/repositoryName/tree/master"
|
||||||
small_banner_logo = false
|
small_banner_logo = false
|
||||||
|
|
||||||
|
[params.utteranc]
|
||||||
|
enable = true
|
||||||
|
repo = "mtn/cocoa-eh-hugo-theme"
|
||||||
|
issueTerm = "title"
|
||||||
|
|
||||||
[params.colors]
|
[params.colors]
|
||||||
identifier = "#527fc1f"
|
identifier = "#527fc1f"
|
||||||
identifier_dark = "#1a3152"
|
identifier_dark = "#1a3152"
|
||||||
|
@@ -91,6 +91,19 @@
|
|||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ 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 }}
|
{{ if .Site.Params.issoHost }}
|
||||||
<br>
|
<br>
|
||||||
<div class="isso" id="isso-thread"></div>
|
<div class="isso" id="isso-thread"></div>
|
||||||
|
Reference in New Issue
Block a user