From b74ce2da93036bdbc495fc11cdfd62294bed3fd3 Mon Sep 17 00:00:00 2001 From: Victor_Jay Date: Tue, 2 Jun 2026 23:29:16 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=AF=A6=E6=83=85=E9=A1=B5=E4=BD=9C?= =?UTF-8?q?=E8=80=85=E5=90=8D=E9=93=BE=E6=8E=A5=E5=88=B0=20/space/:uid=20?= =?UTF-8?q?=E7=A9=BA=E9=97=B4=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 作者名可点击跳转到作者空间页,已注销用户不生成链接 - hover 时变为主题紫色 + 下划线,与 meta 行风格协调 --- templates/MetaLab-2026/html/posts/show.html | 6 +++++- templates/MetaLab-2026/static/css/posts.css | 10 ++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/templates/MetaLab-2026/html/posts/show.html b/templates/MetaLab-2026/html/posts/show.html index c780817..3ca1664 100644 --- a/templates/MetaLab-2026/html/posts/show.html +++ b/templates/MetaLab-2026/html/posts/show.html @@ -8,7 +8,11 @@

{{.Post.Title}}

- 作者:{{if .Post.AuthorName}}{{.Post.AuthorName}}{{else}}该用户已注销{{end}} + {{if .Post.AuthorName}} + 作者: + {{else}} + 作者:该用户已注销 + {{end}} 阅读:{{.Post.ViewsCount}} 点赞:{{.Post.LikesCount}} 收藏:{{.Post.FavoritesCount}} diff --git a/templates/MetaLab-2026/static/css/posts.css b/templates/MetaLab-2026/static/css/posts.css index 042869e..6417d03 100644 --- a/templates/MetaLab-2026/static/css/posts.css +++ b/templates/MetaLab-2026/static/css/posts.css @@ -97,6 +97,16 @@ color: #6b7280; } +.post-detail-meta a { + color: #6b7280; + text-decoration: none; +} + +.post-detail-meta a:hover { + color: #6366f1; + text-decoration: underline; +} + .post-detail-body { font-size: 16px; line-height: 1.8;