Skip to content

Commit

Permalink
feat: add the weight field
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Jan 18, 2024
1 parent 255cba9 commit afc0a00
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -192,3 +192,10 @@ name = "type"
label = "Type"
required = false
widget = "string"

[params.decap_cms._configs.field_weight.fields.weight]
i18n = true
name = "weight"
label = "Weight"
required = false
widget = "number"
3 changes: 3 additions & 0 deletions i18n/en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,6 @@ other = "Title"

[cms_field_label_type]
other = "Type"

[cms_field_label_weight]
other = "Weight"
3 changes: 3 additions & 0 deletions i18n/zh-hans.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,6 @@ other = "标题"

[cms_field_label_type]
other = "类型"

[cms_field_label_weight]
other = "权重"
3 changes: 3 additions & 0 deletions i18n/zh-hant.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,6 @@ other = "標題"

[cms_field_label_type]
other = "類型"

[cms_field_label_weight]
other = "權重"

0 comments on commit afc0a00

Please sign in to comment.