mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-14 19:26:40 +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"
|
||||
small_banner_logo = false
|
||||
|
||||
[params.utteranc]
|
||||
enable = true
|
||||
repo = "mtn/cocoa-eh-hugo-theme"
|
||||
issueTerm = "title"
|
||||
|
||||
[params.colors]
|
||||
identifier = "#527fc1f"
|
||||
identifier_dark = "#1a3152"
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user