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

github.com/Fastbyte01/KeepIt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Pignataro <rogepix@gmail.com>2019-08-21 00:10:24 +0300
committerGiuseppe Pignataro <rogepix@gmail.com>2019-08-21 00:10:24 +0300
commit0a36eafd6446b59585ecaec4bf44ec0ee15c6b85 (patch)
tree6e139601279cd169fc335656977d9c18829346b3
parent379c1ff1b98c8bdb696cb1885bb17705c801248a (diff)
Added utterances comment system
Added utterances comment system
-rw-r--r--exampleSite/config.toml4
-rw-r--r--layouts/partials/comments.html12
2 files changed, 16 insertions, 0 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index b263269..b37d8d4 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -175,3 +175,7 @@ clientSecret = ""
avatar = 'mm'
placeholder = 'your comments ...'
visitor = true
+
+[params.utterances] # https://utteranc.es/
+ owner = "" # Your GitHub ID
+ repo = "" # The repo to store comments
diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html
index d554938..fa0f32c 100644
--- a/layouts/partials/comments.html
+++ b/layouts/partials/comments.html
@@ -64,5 +64,17 @@
});
</script>
{{- end -}}
+<!-- utterances -->
+ {{- if .Site.Params.utterances.owner}}
+ <script src="https://utteranc.es/client.js"
+ repo="{{ .Site.Params.utterances.owner }}/{{ .Site.Params.utterances.repo }}"
+ issue-term="pathname"
+ theme="github-light"
+ crossorigin="anonymous"
+ async>
+ </script>
+ <noscript>Please enable JavaScript to view the <a href="https://github.com/utterance">comments powered by utterances.</a></noscript>
+ {{- end }}
+
{{- end }}