From 2c28ea2662cbe7eda0e4251af3b733c7c8d9db4b Mon Sep 17 00:00:00 2001 From: "1152958806@qq.com" <17683872107czx> Date: Thu, 3 Aug 2023 17:08:16 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8D=E5=AE=98=E6=96=B9=E5=9B=BE?= =?UTF-8?q?=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- annotation-setting.yaml | 21 ++++++ package.json | 2 +- settings.yaml | 73 ++++++++++++++++----- templates/album.html | 6 +- templates/comments.html | 3 - templates/modules/widgets/banner-group.html | 66 ++++++++++++++----- templates/photos.html | 9 ++- theme.yaml | 4 +- 8 files changed, 139 insertions(+), 45 deletions(-) diff --git a/annotation-setting.yaml b/annotation-setting.yaml index 9884bef5..0048c06c 100644 --- a/annotation-setting.yaml +++ b/annotation-setting.yaml @@ -58,3 +58,24 @@ spec: name: "labelColor" value: "#425AEF" label: "标签颜色" + +--- + +apiVersion: v1alpha1 +kind: AnnotationSetting +metadata: + generateName: annotation-setting- +spec: + targetRef: + group: "core.halo.run" + kind: PhotoGroup + formSchema: + - $formkit: "attachment" + name: "cover" + label: "分组图片" + - $formkit: "attachment" + name: "background" + label: "分组顶部 banner 图片" + - $formkit: "textarea" + name: "description" + label: "分组描述" \ No newline at end of file diff --git a/package.json b/package.json index 8ad6756a..b4215e88 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "halo-theme-hao", - "version": "1.3.0", + "version": "1.3.1", "dependencies": { } } diff --git a/settings.yaml b/settings.yaml index 14a843fa..ebee3a30 100644 --- a/settings.yaml +++ b/settings.yaml @@ -219,21 +219,64 @@ spec: placeholder: 请输入小标题 value: 更多信息请关注 GitHub help: 支持 HTML 语法 - - $formkit: url - name: bikan - label: 必看精选 - placeholder: 请输入地址 - value: / - - $formkit: url - name: remen - label: 热门文章 - placeholder: 请输入地址 - value: / - - $formkit: url - name: shiyong - label: 实用教程 - placeholder: 请输入地址 - value: / + - $formkit: repeater + name: categoryGroup + min: 3 + max: 3 + value: + - title: "必看精选" + icon: "iconfont icon-book" + url: "/" + colorOneLight: "#358bff" + colorTwoLight: "#15c6ff" + colorOneDark: "#0653b8" + colorTwoDark: "#2fcbff" + - title: "热门文章" + icon: "iconfont icon-burn" + url: "/" + colorOneLight: "#ff6655" + colorTwoLight: "#ffbf37" + colorOneDark: "#e22a16" + colorTwoDark: "#da980c" + - title: "实用教程" + icon: "iconfont icon-book" + url: "/" + colorOneLight: "#18e7ae" + colorTwoLight: "#1eebeb" + colorOneDark: "#099e74" + colorTwoDark: "#0ea4a4" + children: + - $formkit: text + name: title + label: 标题 + placeholder: 请输入内容 + validation: required + - $formkit: text + name: icon + label: 图标 + placeholder: 请输入内容 + validation: required + - $formkit: url + name: url + label: 跳转地址 + placeholder: 请输入内容 + validation: required + - $formkit: color + name: colorOneLight + label: 颜色1 (浅色) + validation: required + - $formkit: color + name: colorTwoLight + label: 颜色2 (浅色) + validation: required + - $formkit: color + name: colorOneDark + label: 颜色1 (深色) + validation: required + - $formkit: color + name: colorTwoDark + label: 颜色2 (深色) + validation: required - $formkit: group name: BannerRight label: Banner 右侧 diff --git a/templates/album.html b/templates/album.html index 8eb5a8a9..766380e9 100644 --- a/templates/album.html +++ b/templates/album.html @@ -23,11 +23,11 @@