From bf8b09ed0e30eee3ea1113c74d1caf7212e756b1 Mon Sep 17 00:00:00 2001 From: Reorx Date: Fri, 27 May 2022 23:41:24 +0800 Subject: [PATCH] add telegram_widget.html --- assets/css/common/post-single.css | 3 +- layouts/partials/telegram_widget.html | 54 ++++++++++++++++++++++++--- 2 files changed, 51 insertions(+), 6 deletions(-) diff --git a/assets/css/common/post-single.css b/assets/css/common/post-single.css index bed37fa..edaa135 100644 --- a/assets/css/common/post-single.css +++ b/assets/css/common/post-single.css @@ -539,7 +539,8 @@ h6:hover .anchor { box-shadow: 0 2px 0 var(--twitter-color); } -.disqus-container { +.disqus-container, +.telegram-widget-container { margin: calc(var(--content-gap) * 2) 0; background-color: var(--code-bg); border-radius: 10px; diff --git a/layouts/partials/telegram_widget.html b/layouts/partials/telegram_widget.html index 84db442..430c72e 100644 --- a/layouts/partials/telegram_widget.html +++ b/layouts/partials/telegram_widget.html @@ -1,7 +1,51 @@ {{- with site.Params.commentSystem.telegramWidget }} - +
+ + + + {{- end }}