From 6a3cfd6e5b53d94fcb5420e7a5f3b241e65d49d2 Mon Sep 17 00:00:00 2001 From: liuxuewen <947752894@qq.com> Date: Tue, 12 Nov 2024 10:51:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BE=A7=E8=BE=B9?= =?UTF-8?q?=E6=A0=8F=E7=88=B1=E5=8F=91=E7=94=B5=E7=94=A8=E6=88=B7=E8=AE=BF?= =?UTF-8?q?=E9=97=AE=E5=9C=B0=E5=9D=80=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20change:=20=E4=BF=AE=E6=94=B9=E4=B8=BB=E9=A2=98=E4=BE=A7?= =?UTF-8?q?=E8=BE=B9=E6=A0=8F=E7=88=B1=E5=8F=91=E7=94=B5=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=EF=BC=8C=E9=9C=80=E8=A6=81=E9=87=8D=E6=96=B0=E6=A0=B9=E6=8D=AE?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E8=BF=9B=E8=A1=8C=E8=AE=BE=E7=BD=AE=20change?= =?UTF-8?q?:=20=E5=8F=98=E6=9B=B4=E4=BE=A7=E8=BE=B9=E6=A0=8F=E7=88=B1?= =?UTF-8?q?=E5=8F=91=E7=94=B5=E5=8A=9F=E8=83=BD=E8=AE=BF=E9=97=AE=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=E6=94=AF=E6=8C=81=E6=89=8B=E5=8A=A8=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- settings.yaml | 5 +++++ templates/assets/js/halo.js | 4 ++-- templates/modules/variables/site-config.html | 3 ++- templates/modules/widgets/aside/power.html | 2 +- theme.yaml | 2 +- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/settings.yaml b/settings.yaml index 92f0d3a4..4900cca1 100644 --- a/settings.yaml +++ b/settings.yaml @@ -1112,9 +1112,14 @@ spec: - $formkit: url name: powerLink label: 赞助地址 + help: https://afdian.com/a/ (必须带上末尾的/) - $formkit: number name: showNum label: 最大展示条数 + - $formkit: text + name: username + label: 赞助用户名 + help: carolcoral - $formkit: group name: music label: 音乐卡片 diff --git a/templates/assets/js/halo.js b/templates/assets/js/halo.js index c3e17ca5..fba24327 100644 --- a/templates/assets/js/halo.js +++ b/templates/assets/js/halo.js @@ -380,7 +380,7 @@ let halo = { var data = getArrayItems(values, 1); let powerStar = document.getElementById("power-star") if (values.length === 0) { - powerStar.href = GLOBAL_CONFIG.source.power.powerLink + powerStar.href = GLOBAL_CONFIG.source.power.powerLink + GLOBAL_CONFIG.source.power.username powerStar.innerHTML = `