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, '')}">

申请友链的方法: