Skip to content

Commit

Permalink
feat: add the expiry date field (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang authored Jan 18, 2024
1 parent c76e3af commit 3197a60
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@ label = "Draft"
default = true
widget = "boolean"

[params.decap_cms._configs.field_expiry_date.fields.expiry_date]
i18n = true
name = "expiryDate"
label = "Expiry Date"
widget = "datetime"
picker_utc = true
required = false

[params.decap_cms._configs.field_images.fields.images]
i18n = "duplicate"
name = "images"
Expand Down
3 changes: 3 additions & 0 deletions i18n/en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ other = "Description"
[cms_field_label_draft]
other = "Draft"

[cms_field_label_expiry_date]
other = "Expiry Date"

[cms_field_label_images]
other = "Images"

Expand Down
3 changes: 3 additions & 0 deletions i18n/zh-hans.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ other = "描述"
[cms_field_label_draft]
other = "草稿"

[cms_field_label_expiry_date]
other = "有效期"

[cms_field_label_images]
other = "图片"

Expand Down
3 changes: 3 additions & 0 deletions i18n/zh-hant.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ other = "描述"
[cms_field_label_draft]
other = "草稿"

[cms_field_label_expiry_date]
other = "有效期"

[cms_field_label_images]
other = "圖片"

Expand Down

0 comments on commit 3197a60

Please sign in to comment.