diff --git a/settings.yaml b/settings.yaml index c3c69cb..2fa571b 100644 --- a/settings.yaml +++ b/settings.yaml @@ -872,11 +872,20 @@ spec: label: "友链页面-补充信息" placeholder: '请输入补充信息' help: '友链页面最低部的补充说明信息,支持 HTML 格式。' - - $formkit: text + - $formkit: radio + name: link_enable_comment + label: 友链页面-开启评论区 + value: false + options: + - value: true + label: 开启 + - value: false + label: 关闭 + - $formkit: singlePageSelect name: link_comment_id label: 友链页面-评论区ID - placeholder: '请输入 ID' - help: '友链页面没有 ID,需要指定一个自定义页面的 ID 用于评论,被指定的文章评论区将作为友链的评论区,放空则友链界面不显示评论区。' + placeholder: '请选择一个页面作为友链页面的评论区ID' + help: '友链页面没有 ID,需要指定一个自定义页面的 ID 用于评论,被指定的页面评论区将作为友链的评论区,未选择时则友链界面不显示评论区。' - $formkit: radio name: enable_tags_tag_color label: 标签页面-开启标签颜色 diff --git a/templates/links.html b/templates/links.html index 0e97da6..c047f81 100644 --- a/templates/links.html +++ b/templates/links.html @@ -1,7 +1,7 @@ + th:with="baseEnableComment = ${!#strings.isEmpty(theme.config.page_config.link_comment_id) && theme.config.page_config.link_enable_comment}">
@@ -51,4 +51,4 @@
-
\ No newline at end of file +