Skip to content

Commit

Permalink
feat: add the lastmod field
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Jan 18, 2024
1 parent feb7816 commit 188406f
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,15 @@ label = "Keyword"
name = "keyword"
widget = "string"

[params.decap_cms._configs.field_lastmod.fields.lastmod]
i18n = true
name = "lastmod"
label = "Lastmod"
widget = "datetime"
picker_utc = true
required = false
default = ""

[params.decap_cms._configs.field_layout.fields.layout]
i18n = "duplicate"
name = "layout"
Expand Down
3 changes: 3 additions & 0 deletions i18n/en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ other = "Images"
[cms_field_label_keywords]
other = "Keywords"

[cms_field_label_lastmod]
other = "Last Modified"

[cms_field_label_layout]
other = "Layout"

Expand Down
3 changes: 3 additions & 0 deletions i18n/zh-hans.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ other = "图片"
[cms_field_label_keywords]
other = "关键词"

[cms_field_label_lastmod]
other = "最后修改时间"

[cms_field_label_layout]
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 @@ -28,6 +28,9 @@ other = "圖片"
[cms_field_label_keywords]
other = "關鍵詞"

[cms_field_label_lastmod]
other = "最後修改時間"

[cms_field_label_layout]
other = "佈局"

Expand Down

0 comments on commit 188406f

Please sign in to comment.