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:
authorRicardo Franzen <rfranzen@gmail.com>2019-10-06 03:08:46 +0300
committerRicardo Franzen <rfranzen@gmail.com>2019-10-06 03:08:46 +0300
commit1368e4576eb3f35337c02cf410545ef55e2319ca (patch)
treeb79dc10b28faee9370c58f33fac32f78cf12239b
parent4c748f2e02b2e6964c424ac5e40b807919c3418f (diff)
support for Telegram DiscussBot
-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 4bb45cf..cb31618 100644
--- a/layouts/post/single.html
+++ b/layouts/post/single.html
@@ -16,6 +16,8 @@
{{ partial "disqus.html" . }}
+ {{ partial "telegram.html" . }}
+
</div>
{{ partial "footer.html" . }}