update static cms, decap configs to use a list for authors instead of static text field

This commit is contained in:
KemoNine 2023-03-20 13:29:22 -04:00
parent 7af4b687c1
commit 48d3b0789c
2 changed files with 32 additions and 4 deletions

View file

@ -21,7 +21,15 @@ collections:
fields: # The fields for each document, usually in front matter fields: # The fields for each document, usually in front matter
- {label: "Layout", name: "layout", widget: "hidden", default: "post", required: true} - {label: "Layout", name: "layout", widget: "hidden", default: "post", required: true}
- {label: "Title", name: "title", widget: "string", required: true} - {label: "Title", name: "title", widget: "string", required: true}
- {label: "Author", name: "author", widget: "string", required: true} - name: authors
label: Authors
widget: list
required: true
collapsed: false
fields:
- name: author
label: Author
widget: string
- {label: "Publish Date", name: "publishDate", widget: "datetime", date_format: 'yyyy-MM-dd', time_format: false, required: true} - {label: "Publish Date", name: "publishDate", widget: "datetime", date_format: 'yyyy-MM-dd', time_format: false, required: true}
- {label: "Last Modified", name: "lastMod", widget: "datetime", date_format: 'yyyy-MM-dd', time_format: false, required: true} - {label: "Last Modified", name: "lastMod", widget: "datetime", date_format: 'yyyy-MM-dd', time_format: false, required: true}
- {label: "Show TOC?", name: "toc", widget: "boolean", default: true} - {label: "Show TOC?", name: "toc", widget: "boolean", default: true}
@ -75,7 +83,15 @@ collections:
fields: # The fields for each document, usually in front matter fields: # The fields for each document, usually in front matter
- {label: "Layout", name: "layout", widget: "hidden", default: "post", required: true} - {label: "Layout", name: "layout", widget: "hidden", default: "post", required: true}
- {label: "Title", name: "title", widget: "string", required: true} - {label: "Title", name: "title", widget: "string", required: true}
- {label: "Author", name: "author", widget: "string", required: true} - name: authors
label: Authors
widget: list
required: true
collapsed: false
fields:
- name: author
label: Author
widget: string
- {label: "Publish Date", name: "publishDate", widget: "datetime", date_format: 'yyyy-MM-dd', time_format: false, required: true} - {label: "Publish Date", name: "publishDate", widget: "datetime", date_format: 'yyyy-MM-dd', time_format: false, required: true}
- {label: "Last Modified", name: "lastMod", widget: "datetime", date_format: 'yyyy-MM-dd', time_format: false, required: true} - {label: "Last Modified", name: "lastMod", widget: "datetime", date_format: 'yyyy-MM-dd', time_format: false, required: true}
- {label: "Show TOC?", name: "toc", widget: "boolean", default: true} - {label: "Show TOC?", name: "toc", widget: "boolean", default: true}

View file

@ -21,7 +21,13 @@ collections:
fields: # The fields for each document, usually in front matter fields: # The fields for each document, usually in front matter
- {label: "Layout", name: "layout", widget: "hidden", default: "post", required: true} - {label: "Layout", name: "layout", widget: "hidden", default: "post", required: true}
- {label: "Title", name: "title", widget: "string", required: true} - {label: "Title", name: "title", widget: "string", required: true}
- {label: "Author", name: "author", widget: "string", required: true} - label: "Authors"
name: "authors"
widget: "list"
allow_add: true
required: true
summary: '{{fields.author}}'
field: {label: Author, name: author, widget: string}
- {label: "Publish Date", name: "publishDate", widget: "datetime", date_format: 'YYYY-MM-DD', time_format: false, required: true} - {label: "Publish Date", name: "publishDate", widget: "datetime", date_format: 'YYYY-MM-DD', time_format: false, required: true}
- {label: "Last Modified", name: "lastMod", widget: "datetime", date_format: 'YYYY-MM-DD', time_format: false, required: true} - {label: "Last Modified", name: "lastMod", widget: "datetime", date_format: 'YYYY-MM-DD', time_format: false, required: true}
- {label: "Show TOC?", name: "toc", widget: "boolean", default: true} - {label: "Show TOC?", name: "toc", widget: "boolean", default: true}
@ -66,7 +72,13 @@ collections:
fields: # The fields for each document, usually in front matter fields: # The fields for each document, usually in front matter
- {label: "Layout", name: "layout", widget: "hidden", default: "post", required: true} - {label: "Layout", name: "layout", widget: "hidden", default: "post", required: true}
- {label: "Title", name: "title", widget: "string", required: true} - {label: "Title", name: "title", widget: "string", required: true}
- {label: "Author", name: "author", widget: "string", required: true} - label: "Authors"
name: "authors"
widget: "list"
allow_add: true
required: true
summary: '{{fields.author}}'
field: {label: Author, name: author, widget: string}
- {label: "Publish Date", name: "publishDate", widget: "datetime", date_format: 'YYYY-MM-DD', time_format: false, required: true} - {label: "Publish Date", name: "publishDate", widget: "datetime", date_format: 'YYYY-MM-DD', time_format: false, required: true}
- {label: "Last Modified", name: "lastMod", widget: "datetime", date_format: 'YYYY-MM-DD', time_format: false, required: true} - {label: "Last Modified", name: "lastMod", widget: "datetime", date_format: 'YYYY-MM-DD', time_format: false, required: true}
- {label: "Show TOC?", name: "toc", widget: "boolean", default: true} - {label: "Show TOC?", name: "toc", widget: "boolean", default: true}