From b338ccd3c3d646f85215518e4b16b45c1ca697fb Mon Sep 17 00:00:00 2001 From: "1152958806@qq.com" <1152958806@qq.com> Date: Wed, 27 Dec 2023 21:19:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E7=AB=A0=E5=A2=9E=E5=8A=A0=E6=B8=A9?= =?UTF-8?q?=E9=A6=A8=E6=8F=90=E7=A4=BA,=E6=9C=80=E5=90=8E=E4=B8=80?= =?UTF-8?q?=E6=AC=A1=E6=9B=B4=E6=96=B0=E6=97=B6=E9=97=B4=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- settings.yaml | 28 ++++++++++++++++++++++++++++ templates/post.html | 11 ++++++++++- 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/settings.yaml b/settings.yaml index 4ebaf1bd..d79d4e63 100644 --- a/settings.yaml +++ b/settings.yaml @@ -1249,6 +1249,34 @@ spec: label: 你的博客地址 help: 注意保留最后的斜杠 value: https://xx.xx/ + - $formkit: group + name: passage_tips + label: 温馨提示 + value: + enable: false + content: 文章内容可能已经过时。 + day: 7 + children: + - $formkit: radio + name: enable + id: enable + options: + - label: 启用 + value: true + - label: 禁用 + value: false + - $formkit: number + if: "$get(enable).value" + name: day + label: 更新时间大于天数显示 + validation: required + - $formkit: code + if: "$get(enable).value" + name: content + height: 100px + label: 温馨提示文案 + help: "自定义温馨提示的文案,支持html语法" + language: html - $formkit: select name: copyrightsStyle id: copyrightsStyle diff --git a/templates/post.html b/templates/post.html index 8e929a7e..a3c40ca5 100644 --- a/templates/post.html +++ b/templates/post.html @@ -165,7 +165,16 @@ -
+
+ +
+

+ +

+
+
+