From 4ace470668df86d8c042813938971c5331224fa0 Mon Sep 17 00:00:00 2001
From: Vaica <94612053+zqlit@users.noreply.github.com>
Date: Fri, 23 Jan 2026 23:24:46 +0800
Subject: [PATCH] =?UTF-8?q?fixed=20=E6=8E=A7=E5=88=B6=E5=8F=B0bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
hugo.toml | 9 +++++++++
themes/Ying/layouts/_default/comment.html | 8 ++++----
themes/Ying/layouts/partials/footer.html | 4 ++--
themes/Ying/{assets => static}/js/bsz.js | 0
4 files changed, 15 insertions(+), 6 deletions(-)
rename themes/Ying/{assets => static}/js/bsz.js (100%)
diff --git a/hugo.toml b/hugo.toml
index 41ca3ffb..c9e337fc 100644
--- a/hugo.toml
+++ b/hugo.toml
@@ -104,6 +104,15 @@ hasCJKLanguage = true
avatar = "/image/tx7.jpg"
description = "不以物喜,不以己悲"
+ # ----------------------------------------------------------------------------
+ # 留言页面友链申请示例配置 (Message Page Link Exchange Example)
+ # ----------------------------------------------------------------------------
+ [params.message_info]
+ name = "优世界"
+ description = "不以物喜,不以己悲"
+ url = "https://usj.cc"
+ icon = "https://usj.cc/favicon.ico"
+
# ----------------------------------------------------------------------------
# 评论系统 (Artalk Comments)
# ----------------------------------------------------------------------------
diff --git a/themes/Ying/layouts/_default/comment.html b/themes/Ying/layouts/_default/comment.html
index a8299b75..79667367 100644
--- a/themes/Ying/layouts/_default/comment.html
+++ b/themes/Ying/layouts/_default/comment.html
@@ -5,10 +5,10 @@
{{ .Content }}
- - 名称:{{ .Site.Params.artalk.site }}
- - 简介:{{ .Site.Params.author.description }}
- - 链接:{{ .Site.BaseURL }}
- - 图标:{{ .Site.Params.author.avatar }}
+ - 名称:{{ .Site.Params.message_info.name | default .Site.Params.artalk.site }}
+ - 简介:{{ .Site.Params.message_info.description | default .Site.Params.author.description }}
+ - 链接:{{ .Site.Params.message_info.url | default .Site.BaseURL }}
+ - 图标:{{ .Site.Params.message_info.icon | default .Site.Params.author.avatar }}