From ecea9425f1f1b20a2ddd2879461d84ba82bc6ad3 Mon Sep 17 00:00:00 2001 From: jiewenhuang Date: Sat, 12 Aug 2023 19:14:33 +0800 Subject: [PATCH] =?UTF-8?q?Change:=E5=A2=9E=E5=8A=A0=E4=BE=A7=E8=BE=B9?= =?UTF-8?q?=E6=A0=8F=E6=9C=80=E6=96=B0=E8=AF=84=E8=AE=BA=E6=95=B0=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- settings.yaml | 16 ++++++++++++++++ templates/modules/common/aside.html | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/settings.yaml b/settings.yaml index ca1235a..0a40fb4 100644 --- a/settings.yaml +++ b/settings.yaml @@ -1329,6 +1329,16 @@ spec: label: 是 - value: false label: 否 + - $formkit: select + name: enable_sheet_aside + label: 自定义页侧边栏 + value: false + help: "自定义页面右侧是否展示侧边栏,默认关闭。开启后,所有自定义页面都会展示侧边栏(若部分页面不想展示,可以配置对应页面的元数据 enable_aside 为 false )" + options: + - value: true + label: 是 + - value: false + label: 否 - $formkit: select name: enable_notice label: 展示网站公告 @@ -1414,6 +1424,12 @@ spec: label: 是 - value: false label: 否 + - $formkit: number + if: "$get(show_newreply).value" + name: show_newreply_num + label: 展示最新评论 + value: 3 + help: "在侧边栏展示最新评论的数量" - $formkit: radio name: enable_tag_cloud id: enable_tag_cloud diff --git a/templates/modules/common/aside.html b/templates/modules/common/aside.html index 31a0645..7e0ffb3 100644 --- a/templates/modules/common/aside.html +++ b/templates/modules/common/aside.html @@ -61,7 +61,7 @@