Skip to content

Commit

Permalink
feat: 使用元数据表单设置菜单icon
Browse files Browse the repository at this point in the history
  • Loading branch information
AirboZH committed Feb 6, 2024
1 parent 7f869a1 commit 1bcb83c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
33 changes: 33 additions & 0 deletions annotation-setting.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,34 @@
# nonk8s
apiVersion: v1alpha1
kind: AnnotationSetting
metadata:
generateName: annotation-setting-chirpy
spec:
targetRef:
group: ""
kind: MenuItem
formSchema:
- $formkit: "text"
name: "icon"
label: "图标"

#---
#
#apiVersion: v1alpha1
#kind: AnnotationSetting
#metadata:
# generateName: annotation-setting-
#spec:
# targetRef:
# group: content.halo.run
# kind: Post
# formSchema:
# - $formkit: "radio"
# name: "showInIndex"
# label: "在首页显示"
# value: "show"
# options:
# - label: 显示
# value: "show"
# - label: 不显示
# value: "hide"
1 change: 1 addition & 0 deletions export-zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ archive.pipe(output);
archive.directory('i18n/', true);
archive.directory('templates/', true);
archive.file('settings.yaml', {name: 'settings.yaml'});
archive.file('annotation-setting.yaml', {name: 'annotation-setting.yaml'});
archive.file('theme.yaml', {name: 'theme.yaml'});
archive.finalize();

0 comments on commit 1bcb83c

Please sign in to comment.