From 77deec1a30d2acdffb401253675deb05c20b4677 Mon Sep 17 00:00:00 2001
From: Eltrac
Date: Fri, 18 Apr 2025 14:34:47 +0800
Subject: feat: better telegram link style
Former-commit-id: c7a4791bc39b28711ea2ba4210e3653953444309
---
assets/css/components/_comment.scss | 16 ++++++++++++++++
layouts/partials/components/comment.html | 7 ++++++-
static/img/telegram.svg | 1 +
3 files changed, 23 insertions(+), 1 deletion(-)
create mode 100644 static/img/telegram.svg
diff --git a/assets/css/components/_comment.scss b/assets/css/components/_comment.scss
index 6b1c0e92..82019dec 100644
--- a/assets/css/components/_comment.scss
+++ b/assets/css/components/_comment.scss
@@ -31,3 +31,19 @@
margin: 1rem 0
}
}
+
+.telegram-link-container {
+ text-align: center;
+ display: flex;
+ justify-content: center;
+ a {
+ @include small-button;
+ font-size: .9rem;
+ display: inline-flex;
+ align-items: center;
+ gap: 0.25rem;
+ img {
+ width: 1rem;
+ }
+ }
+}
diff --git a/layouts/partials/components/comment.html b/layouts/partials/components/comment.html
index cfdfa886..64f3d554 100644
--- a/layouts/partials/components/comment.html
+++ b/layouts/partials/components/comment.html
@@ -26,7 +26,12 @@
你也可以加入本站的 Telegram 群组参与讨论
+ {{ end }}