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

github.com/yoshiharuyamashita/blackburn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortristor <tristor@gmail.com>2021-02-06 00:25:44 +0300
committertristor <tristor@gmail.com>2021-02-06 02:49:26 +0300
commit7b1732e06c8e5cae3a54b0c22b386ab693dde751 (patch)
treeefff61970eb82f81604f9534365203c3af9de57f
parent4c748f2e02b2e6964c424ac5e40b807919c3418f (diff)
Add support for Commento.io as a Disqus alternative.
-rw-r--r--layouts/partials/commento.html6
-rw-r--r--layouts/post/single.html4
2 files changed, 9 insertions, 1 deletions
diff --git a/layouts/partials/commento.html b/layouts/partials/commento.html
new file mode 100644
index 0000000..c3fad2d
--- /dev/null
+++ b/layouts/partials/commento.html
@@ -0,0 +1,6 @@
+{{ with .Site.Params.commento }}
+<div id="commento_thread"></div>
+<script defer src="https://cdn.commento.io/js/commento.js"></script>
+<div id="commento"></div>
+<noscript>This site uses privacy-respecting comments integration provided by <a href="https://commento.io/">Commento</a>. Please enable Javascript to see comments.</noscript>
+{{ end }} \ No newline at end of file
diff --git a/layouts/post/single.html b/layouts/post/single.html
index 4bb45cf..5dc8ca4 100644
--- a/layouts/post/single.html
+++ b/layouts/post/single.html
@@ -13,7 +13,9 @@
{{ partial "share.html" . }}
{{ partial "prev_next_post.html" . }}
-
+
+ {{ partial "commento.html" . }}
+
{{ partial "disqus.html" . }}
</div>