diff options
| author | Reorx <novoreorx@gmail.com> | 2022-05-27 21:33:40 +0800 |
|---|---|---|
| committer | Reorx <novoreorx@gmail.com> | 2022-05-27 21:33:40 +0800 |
| commit | 28511efd081dba9dac8cbf8fa2c8135216264243 (patch) | |
| tree | 6fe8e74f91dbc1ae25d848d552cc0e3357d3b53d /layouts/partials/telegram_widget.html | |
| parent | 9f8b0c319412a75f703d98e9a36cc91e8d7ccdda (diff) | |
control comment system in partials/comments.html
Diffstat (limited to 'layouts/partials/telegram_widget.html')
| -rw-r--r-- | layouts/partials/telegram_widget.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/layouts/partials/telegram_widget.html b/layouts/partials/telegram_widget.html new file mode 100644 index 0000000..84db442 --- /dev/null +++ b/layouts/partials/telegram_widget.html @@ -0,0 +1,7 @@ +{{- with site.Params.commentSystem.telegramWidget }} +<script async + src="https://telegram.org/js/telegram-widget.js?19" + data-telegram-discussion="{{ .channel }}" + data-comments-limit="{{ .limit | default 10 }}" + {{ with .accentColor }}data-color="{{ . }}"{{ end }}></script> +{{- end }} |
