From 07cf2303edf41590aebc394df2e32dfde436473a Mon Sep 17 00:00:00 2001 From: "1152958806@qq.com" <17683872107czx> Date: Mon, 4 Sep 2023 12:35:07 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E8=84=9A=E5=86=85=E5=AE=B9=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E4=B8=80=E5=92=8C=E9=BB=98=E8=AE=A4=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E5=90=88=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- settings.yaml | 56 +++++++------- .../modules/common/footer-style-one.html | 2 +- templates/modules/footer.html | 74 +++++++++---------- 3 files changed, 66 insertions(+), 66 deletions(-) diff --git a/settings.yaml b/settings.yaml index 38a8331a..c4463823 100644 --- a/settings.yaml +++ b/settings.yaml @@ -1079,36 +1079,43 @@ spec: name: footerContent label: 页脚内容 value: - footerStyle: default + style_one: + owner_enable: false + runtime_enable: true + work_img: "https://0206.ink/upload/%E5%9B%B0%E5%9B%B0%E9%B1%BC-%E4%B8%8B%E7%8F%AD%E5%95%A6-yellowgreen.svg" + work_description: "距离月入25k也就还差一个大佬带我~" + offduty_img: "https://0206.ink/upload/%E5%9B%B0%E5%9B%B0%E9%B1%BC-%E4%B8%8B%E7%8F%AD%E5%95%A6-yellowgreen.svg" + offduty_description: "下班了就该开开心心的玩耍,嘿嘿~" + bdageitem: + - link: "https://halo.run/" + shields: "https://npm.elemecdn.com/hao-theme-static@1.2.0/templates/images/Frame-Halo-blue.svg" + message: "博客框架为halo2.x" + default_enable: true children: - - $formkit: select - name: footerStyle - id: footeStyle - key: footeStyle - label: 样式 - value: default + - $formkit: radio + name: default_enable + label: 底部 options: - - value: default - label: 默认 - - value: one - label: 样式一 + - label: 显示 + value: true + - label: 隐藏 + value: false - $formkit: group - if: $get(footeStyle).value == 'one' name: style_one - label: 样式一 + label: 中间 value: - runtime_enable: - work_img: - work_description: - offduty_img: - offduty_description: - bdageitem: children: + - $formkit: radio + name: owner_enable + label: 网站所有者 + options: + - label: 显示 + value: true + - label: 隐藏 + value: false - $formkit: radio name: runtime_enable id: runtime_enable - key: runtime_enable - value: true label: 运行时间 options: - label: 显示 @@ -1120,32 +1127,25 @@ spec: name: work_img label: 上班时间的徽标 placeholder: 请输入内容 - value: "https://0206.ink/upload/%E5%9B%B0%E5%9B%B0%E9%B1%BC-%E4%B8%8B%E7%8F%AD%E5%95%A6-yellowgreen.svg" - $formkit: text if: $get(runtime_enable).value name: work_description label: 上班时间的 title 描述 placeholder: 请输入内容 - value: "距离月入25k也就还差一个大佬带我~" - $formkit: attachment if: $get(runtime_enable).value name: offduty_img label: 下班时间的徽标 placeholder: 请输入内容 - value: "https://0206.ink/upload/%E5%9B%B0%E5%9B%B0%E9%B1%BC-%E4%B8%8B%E7%8F%AD%E5%95%A6-yellowgreen.svg" - $formkit: text if: $get(runtime_enable).value name: offduty_description label: 下班时间的 title 描述 placeholder: 请输入内容 - value: "下班了就该开开心心的玩耍,嘿嘿~" - $formkit: repeater name: bdageitem label: 徽标配置项 value: - - link: "https://halo.run/" - shields: "https://npm.elemecdn.com/hao-theme-static@1.2.0/templates/images/Frame-Halo-blue.svg" - message: "博客框架为halo2.x" children: - $formkit: url name: link diff --git a/templates/modules/common/footer-style-one.html b/templates/modules/common/footer-style-one.html index 85cc92f6..1f11144b 100644 --- a/templates/modules/common/footer-style-one.html +++ b/templates/modules/common/footer-style-one.html @@ -3,7 +3,7 @@ -