diff --git a/README.md b/README.md index cdf0e8a..a6ceb3e 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,8 @@ 5. `1.0.0`及以上版本需要`Halo`版本>=`2.14.0` `1.0.3`及以上版本需要`Halo`版本>=`2.20.0` + + `1.0.5`及以上版本需要`Halo`版本>=`2.21.0` 6. **若安装主题后出现500错误,请到主题设置页面,将每个设置项都保存一下!!!** @@ -60,8 +62,7 @@ - 瞬间页面 plugin-moments - 追番插件 plugin-bilibili-bangumi - 图库插件 plugin-photos -- katex插件 plugin-katex -- 我的装备 plugin-equipments +- 装备管理 plugin-equipments - Markdown / HTML 内容块插件 plugin-hybrid-edit-block - 爱发电 plugin-afdian diff --git a/annotation-setting.yaml b/annotation-setting.yaml index 7479077..4e28499 100644 --- a/annotation-setting.yaml +++ b/annotation-setting.yaml @@ -150,26 +150,3 @@ spec: - $formkit: "textarea" name: "description" label: "分组描述" - ---- - -apiVersion: v1alpha1 -kind: AnnotationSetting -metadata: - generateName: annotation-setting- -spec: - targetRef: - group: core.halo.run - kind: Equipment - formSchema: - - $formkit: "text" - name: "model" - label: "装备型号/版本" - - $formkit: "text" - name: "button" - label: "左下角按钮显示文字" - value: "详情" - - $formkit: "text" - name: "link" - label: "左下角按钮跳转链接" - diff --git a/templates/equipments.html b/templates/equipments.html index 46a7e2b..c7cd847 100644 --- a/templates/equipments.html +++ b/templates/equipments.html @@ -28,35 +28,35 @@

[[${group.spec.displayName}]]

-
[[${#annotations.get(group, 'description')}]]
+
[[${group.spec.description}]]
+ th:src="${isLazyload ? loadingImg : equipment.spec.cover}" + th:data-lazy-src="${ isLazyload ? equipment.spec.cover : ''}">
[[${equipment.spec.displayName}]]
-
[[${#annotations.get(equipment, 'model')}]] +
[[${equipment.spec.specification}]]
[[${equipment.spec.description}]]
diff --git a/theme.yaml b/theme.yaml index af69ad9..5707d73 100644 --- a/theme.yaml +++ b/theme.yaml @@ -52,8 +52,8 @@ spec: issues: https://gitee.com/uptoz/halo-theme-hao/issues settingName: "theme-hao-setting" configMapName: "theme-hao-configMap" - version: "1.0.4-ce" - require: ">=2.20.0" + version: "1.0.5-ce" + requires: ">=2.21.0" license: - name: "CC BY-SA 4.0" url: "https://gitee.com/uptoz/halo-theme-hao/blob/main/LICENSE"