From 36f26ea6a510d883bb455f2bfc84a07a85a56dc6 Mon Sep 17 00:00:00 2001 From: DLLCNX Date: Tue, 16 Jan 2024 16:00:10 +0800 Subject: [PATCH] =?UTF-8?q?feat(post.html):=20=E8=B0=83=E6=95=B4=E6=9C=80?= =?UTF-8?q?=E5=90=8E=E6=9B=B4=E6=96=B0=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 针对文章页面最后更新时间显示添加开启关闭设置配置,默认关闭 --- settings.yaml | 9 +++++++++ templates/post.html | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/settings.yaml b/settings.yaml index 7fb3407b..8c5f201a 100644 --- a/settings.yaml +++ b/settings.yaml @@ -1416,6 +1416,15 @@ spec: label: 温馨提示文案 help: "自定义温馨提示的文案,支持html语法" language: html + - $formkit: radio + name: update_time + label: 最后更新时间 + value: false + options: + - label: 打开 + value: true + - label: 关闭 + value: false - $formkit: select name: copyrightsStyle id: copyrightsStyle diff --git a/templates/post.html b/templates/post.html index 50e18feb..21b546f3 100644 --- a/templates/post.html +++ b/templates/post.html @@ -78,7 +78,7 @@ th:title="${#dates.format(post.spec.publishTime,'yyyy-MM-dd HH:mm:ss')}"> - +