diff options
author | Yoshiharu Yamashita <yoshiharuyamashita@users.noreply.github.com> | 2021-02-25 21:51:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-25 21:51:27 +0300 |
commit | 63a69ca276f700c99d863aba47673f1bf36ef009 (patch) | |
tree | 2809d0ef2e741c46c81815128b95dbc1575e8937 | |
parent | fe92751ad5606f29906d96814fc93421d0366b3c (diff) | |
parent | 1368e4576eb3f35337c02cf410545ef55e2319ca (diff) |
Merge pull request #95 from rz3n/master
Adds support for Telegram Comments (comments.app)
-rw-r--r-- | layouts/partials/telegram.html | 5 | ||||
-rw-r--r-- | layouts/post/single.html | 2 |
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" . }} |