From 9270dfe326c04751a3479eaa3fb65484ae9a6537 Mon Sep 17 00:00:00 2001 From: fishcpy <2049879862@qq.com> Date: Tue, 11 Mar 2025 23:49:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8F=8B=E9=93=BE=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=8F=8F=E8=BF=B0=E4=BF=A1=E6=81=AF=E6=9D=A5=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- settings.yaml | 20 +++++++++++++++++++ templates/assets/js/dshare.min.js.LICENSE.txt | 0 templates/links.html | 10 ++++++++-- 3 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 templates/assets/js/dshare.min.js.LICENSE.txt diff --git a/settings.yaml b/settings.yaml index 78b893c..72eb7a5 100644 --- a/settings.yaml +++ b/settings.yaml @@ -951,6 +951,26 @@ spec: label: 友链页面-RSS订阅地址 placeholder: '请输入RSS订阅地址' help: '用于交换友链时添加朋友圈的RSS订阅地址。' + - $formkit: radio + name: use_user_bio + label: 友链页面-描述来源 + value: true + options: + - value: true + label: 使用用户信息 + - value: false + label: 单独提供 + - $formkit: text + name: links_descriptive + label: 友链页面-自定义描述 + placeholder: '请输入描述' + help: '用于交换友链时添加的描述。' + if: $get(use_user_bio).value == false + - $formkit: text + name: links_descriptive + label: 友链页面-描述(仅在选择单独提供时可用) + placeholder: '请输入描述' + help: '用于交换友链时添加的描述。' - $formkit: code name: links_info label: "友链页面-补充信息" diff --git a/templates/assets/js/dshare.min.js.LICENSE.txt b/templates/assets/js/dshare.min.js.LICENSE.txt new file mode 100644 index 0000000..e69de29 diff --git a/templates/links.html b/templates/links.html index 568df88..13ee1fc 100644 --- a/templates/links.html +++ b/templates/links.html @@ -33,13 +33,19 @@
+ th:with="bloggerAvatar= ${#strings.defaultString(theme.config.page_config.links_blogger_avatar, contributor.avatar)}, + descriptive= ${#strings.defaultString(theme.config.page_config.links_descriptive, '')}">

申请友链的方法: