Skip to content

Commit

Permalink
feat: add the authors field (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang authored Jan 26, 2024
1 parent 666a2fb commit df4739e
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 @@ -34,6 +34,20 @@ label = "Alias"
name = "alias"
widget = "string"

[params.decap_cms._configs.field_authors.fields.authors]
i18n = true
name = "authors"
label = "Authors"
required = false
widget = "list"
summary = "{{fields.author}}"
collapsed = true
minimize_collapsed = true
[params.decap_cms._configs.field_authors.fields.authors.field]
label = "Author"
name = "author"
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
Expand Up @@ -4,6 +4,12 @@ other = "Alias"
[cms_field_label_aliases]
other = "Aliases"

[cms_field_label_author]
other = "Author"

[cms_field_label_authors]
other = "Authors"

[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
Expand Up @@ -4,6 +4,12 @@ other = "别名"
[cms_field_label_aliases]
other = "别名"

[cms_field_label_author]
other = "作者"

[cms_field_label_authors]
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
Expand Up @@ -4,6 +4,12 @@ other = "別名"
[cms_field_label_aliases]
other = "別名"

[cms_field_label_author]
other = "作者"

[cms_field_label_authors]
other = "作者"

[cms_field_label_body]
other = "正文"

Expand Down

0 comments on commit df4739e

Please sign in to comment.