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:
authorYoshiharu Yamashita <yoshiharuyamashita@users.noreply.github.com>2021-02-25 21:51:27 +0300
committerGitHub <noreply@github.com>2021-02-25 21:51:27 +0300
commit63a69ca276f700c99d863aba47673f1bf36ef009 (patch)
tree2809d0ef2e741c46c81815128b95dbc1575e8937
parentfe92751ad5606f29906d96814fc93421d0366b3c (diff)
parent1368e4576eb3f35337c02cf410545ef55e2319ca (diff)
Merge pull request #95 from rz3n/master
Adds support for Telegram Comments (comments.app)
-rw-r--r--layouts/partials/telegram.html5
-rw-r--r--layouts/post/single.html2
2 files changed, 7 insertions, 0 deletions
diff --git a/layouts/partials/telegram.html b/layouts/partials/telegram.html
new file mode 100644
index 0000000..0d5e5db
--- /dev/null
+++ b/layouts/partials/telegram.html
@@ -0,0 +1,5 @@
+{{ if or (.Site.Params.Telegram.siteID) (.Site.Params.Telegram.limit) }}
+<!-- Telegram DiscussBot -->
+<div id="telegram_thread"></div>
+<script async src="https://comments.app/js/widget.js?2" data-comments-app-website='{{ .Site.Params.Telegram.siteID }}' data-limit='{{ .Site.Params.Telegram.limit }}'></script>
+{{ end }} \ No newline at end of file
diff --git a/layouts/post/single.html b/layouts/post/single.html
index 5dc8ca4..f9f6f09 100644
--- a/layouts/post/single.html
+++ b/layouts/post/single.html
@@ -18,6 +18,8 @@
{{ partial "disqus.html" . }}
+ {{ partial "telegram.html" . }}
+
</div>
{{ partial "footer.html" . }}