Skip to content

Commit

Permalink
feat: add the aliases field
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Jan 16, 2024
1 parent fdb68d6 commit f4ef2a7
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
14 changes: 14 additions & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,20 @@ public_folder = "/images/uploads"
search = true
_preview_styles = []

[params.decap_cms._configs.field_aliases.fields.alias]
i18n = true
name = "aliases"
label = "Aliases"
required = false
widget = "list"
summary = "{{fields.alias}}"
collapsed = true
minimize_collapsed = true
[params.decap_cms._configs.field_aliases.fields.alias.field]
label = "Alias"
name = "alias"
widget = "string"

[params.decap_cms._configs.field_body.fields.body]
i18n = true
name = "body"
Expand Down
6 changes: 6 additions & 0 deletions i18n/en.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
[cms_field_label_alias]
other = "Alias"

[cms_field_label_aliases]
other = "Aliases"

[cms_field_label_body]
other = "Body"

Expand Down
6 changes: 6 additions & 0 deletions i18n/zh-hans.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
[cms_field_label_alias]
other = "别名"

[cms_field_label_aliases]
other = "别名"

[cms_field_label_body]
other = "正文"

Expand Down
6 changes: 6 additions & 0 deletions i18n/zh-hant.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
[cms_field_label_alias]
other = "別名"

[cms_field_label_aliases]
other = "別名"

[cms_field_label_body]
other = "正文"

Expand Down

0 comments on commit f4ef2a7

Please sign in to comment.