Skip to content

Commit

Permalink
fix: set default i18n attribute for fields (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Jan 16, 2024
1 parent 7a8363a commit c8a5cc2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ search = true
_preview_styles = []

[params.decap_cms._configs.field_body.fields.body]
i18n = true
name = "body"
label = "Body"
widget = "markdown"

[params.decap_cms._configs.field_categories.fields.categories]
i18n = true
name = "categories"
label = "Categories"
required = false
Expand All @@ -37,23 +39,27 @@ name = "category"
widget = "string"

[params.decap_cms._configs.field_date.fields.date]
i18n = true
name = "date"
label = "Date"
widget = "datetime"
picker_utc = true

[params.decap_cms._configs.field_description.fields.description]
i18n = true
name = "description"
label = "Description"
widget = "text"

[params.decap_cms._configs.field_draft.fields.draft]
i18n = true
name = "draft"
label = "Draft"
default = true
widget = "boolean"

[params.decap_cms._configs.field_images.fields.images]
i18n = "duplicate"
name = "images"
label = "Images"
required = false
Expand All @@ -67,6 +73,7 @@ name = "image"
widget = "image"

[params.decap_cms._configs.field_keywords.fields.keywords]
i18n = true
name = "keywords"
label = "Keywords"
required = false
Expand All @@ -80,12 +87,14 @@ name = "keyword"
widget = "string"

[params.decap_cms._configs.field_layout.fields.layout]
i18n = "duplicate"
name = "layout"
label = "Layout"
required = false
widget = "string"

[params.decap_cms._configs.field_series.fields.series]
i18n = true
name = "series"
label = "Series"
required = false
Expand All @@ -99,12 +108,14 @@ name = "series"
widget = "string"

[params.decap_cms._configs.field_slug.fields.slug]
i18n = "duplicate"
name = "slug"
label = "Slug"
required = false
widget = "string"

[params.decap_cms._configs.field_tags.fields.tags]
i18n = true
name = "tags"
label = "Tags"
required = false
Expand All @@ -118,11 +129,13 @@ name = "tag"
widget = "string"

[params.decap_cms._configs.field_title.fields.title]
i18n = true
name = "title"
label = "Title"
widget = "string"

[params.decap_cms._configs.field_type.fields.type]
i18n = "duplicate"
name = "type"
label = "Type"
required = false
Expand Down

0 comments on commit c8a5cc2

Please sign in to comment.