Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/cntrump/hugo-notepadium.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMetalblueberry <metalblueberry@gmail.com>2020-04-10 15:01:27 +0300
committerMetalblueberry <metalblueberry@gmail.com>2020-04-10 15:01:27 +0300
commit53535211cd874c9a2ee10feb2251c2445b07cf4f (patch)
treeb52803001c39bde571349020a9b7475ba7e7755e /layouts
parent582297b4fbf27138a37715219138a5001a267667 (diff)
add utteraces comments
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/article-comments.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/layouts/partials/article-comments.html b/layouts/partials/article-comments.html
index 8507a91..d81ba2f 100644
--- a/layouts/partials/article-comments.html
+++ b/layouts/partials/article-comments.html
@@ -4,4 +4,16 @@
{{- template "_internal/disqus.html" . -}}
</section>
{{- end -}}
+{{- end -}}
+{{- if ne site.Params.comments.utterances.repo "" -}}
+ {{- if or (eq .Params.comments true) (and (ne .Params.comments false) (eq site.Params.comments.enable true)) -}}
+ <script
+ src="https://utteranc.es/client.js"
+ repo="{{- site.Params.comments.utterances.repo }}"
+ issue-term="{{ default "pathname" site.Params.comments.utterances.issueTerm }}"
+ label="{{- default "" site.Params.comments.utterances.label -}}"
+ theme="{{- default "github-light" site.Params.comments.utterances.theme -}}"
+ crossorigin="anonymous" async>
+ </script>
+ {{- end -}}
{{- end -}} \ No newline at end of file