Skip to content

Commit

Permalink
i18n: 支持 annotation-settings.yaml i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
HowieHz committed Nov 23, 2024
1 parent 3b5cdb8 commit 96d5f3a
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ jobs:
zip -9 -r howiehz-higan-cn.zip .
rm settings.yaml
rm annotation-settings.yaml
mv ~/work/halo-theme-higan-hz/halo-theme-higan-hz/settings.yaml settings.yaml
zip -9 -r howiehz-higan-cn.zip settings.yaml
mv ~/work/halo-theme-higan-hz/halo-theme-higan-hz/annotation-settings.yaml annotation-settings.yaml
zip -9 -r howiehz-higan-cn.zip settings.yaml annotation-settings.yaml
mv howiehz-higan-cn.zip ~/builds/target
- name: Zip Theme in English
Expand All @@ -49,8 +51,10 @@ jobs:
zip -9 -r howiehz-higan-en.zip .
rm settings.yaml
rm annotation-settings.yaml
mv ~/work/halo-theme-higan-hz/halo-theme-higan-hz/i18n-settings/settings.en.yaml settings.yaml
zip -9 -r howiehz-higan-en.zip settings.yaml
mv ~/work/halo-theme-higan-hz/halo-theme-higan-hz/i18n-settings/annotation-settings.en.yaml annotation-settings.yaml
zip -9 -r howiehz-higan-en.zip settings.yaml annotation-settings.yaml
mv howiehz-higan-en.zip ~/builds/target
- name: Upload Theme Build Target
Expand Down
80 changes: 80 additions & 0 deletions i18n-settings/annotation-settings.en.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
apiVersion: v1alpha1
kind: AnnotationSetting
metadata:
name: howiehz-higan-user-annotation-setting
spec:
targetRef:
group: ""
kind: User
formSchema:
- $formkit: attachment
name: "higan.howiehz.top/author-header-image"
label: Auther Page Header Image

---
apiVersion: v1alpha1
kind: AnnotationSetting
metadata:
name: howiehz-higan-post-annotation-setting
spec:
targetRef:
group: content.halo.run
kind: Post
formSchema:
- $formkit: "text"
name: "higan.howiehz.top/page-title"
label: Page Title
- $formkit: "text"
name: "higan.howiehz.top/page-language"
label: Page Language

---
apiVersion: v1alpha1
kind: AnnotationSetting
metadata:
name: howiehz-higan-single-page-annotation-setting
spec:
targetRef:
group: content.halo.run
kind: SinglePage
formSchema:
- $formkit: "text"
name: "higan.howiehz.top/page-title"
label: Page Title
- $formkit: "text"
name: "higan.howiehz.top/page-language"
label: Page Language

---
apiVersion: v1alpha1
kind: AnnotationSetting
metadata:
name: howiehz-higan-category-annotation-setting
spec:
targetRef:
group: content.halo.run
kind: Category
formSchema:
- $formkit: "text"
name: "higan.howiehz.top/page-title"
label: Page Title
- $formkit: "text"
name: "higan.howiehz.top/page-language"
label: Page Language

---
apiVersion: v1alpha1
kind: AnnotationSetting
metadata:
name: howiehz-higan-tag-annotation-setting
spec:
targetRef:
group: content.halo.run
kind: Tag
formSchema:
- $formkit: "text"
name: "higan.howiehz.top/page-title"
label: Page Title
- $formkit: "text"
name: "higan.howiehz.top/page-language"
label: Page Language

0 comments on commit 96d5f3a

Please sign in to comment.