Update config.yml formatting

This commit is contained in:
Eric Jinks 2018-04-20 10:34:13 +10:00
parent f31052c4e8
commit 603b68f3bd

View file

@ -8,28 +8,6 @@ media_folder: "public/images/uploads" # Media files will be stored in the repo u
public_folder: "/images/uploads" # The src attribute for uploaded media will begin with /images/uploads
collections: # A list of collections the CMS should be able to edit
- name: "settings"
label: "Settings"
delete: false # Prevent users from deleting documents in this collection
editor:
preview: false
files:
- file: "content/settings/global.yml"
label: "Global Settings"
name: "global-settings"
fields:
- {label: Site Title, name: siteTitle, widget: string}
- {label: Site Url, name: siteUrl, widget: string, required: false}
- {label: Site Description, name: siteDescription, widget: text, required: false}
- label: Social Media Card
name: socialMediaCard
widget: object
fields:
- {label: Image, name: image, widget: image, required: false}
- {label: Twitter Site Account, name: twitterSiteAccount, widget: string, required: false}
- {label: Twitter Creator Account, name: twitterCreatorAccount, widget: string, required: false}
- {label: Header Meta / Scripts, name: headerScripts, widget: text, required: false}
- name: "pages"
label: "Page"
delete: false # Prevent users from deleting documents in this collection
@ -43,6 +21,7 @@ collections: # A list of collections the CMS should be able to edit
- {label: Title, name: title, widget: string}
- {label: Subtitle, name: subtitle, widget: string}
- {label: Body, name: body, widget: markdown}
- file: "content/pages/about.md"
label: "About Page"
name: "about-page"
@ -52,6 +31,7 @@ collections: # A list of collections the CMS should be able to edit
- {label: Featured Image, name: featuredImage, widget: image}
- {label: Section 1, name: section1, widget: markdown}
- {label: Section 2, name: section2, widget: markdown}
- file: "content/pages/contact.md"
label: "Contact Page"
name: "contact-page"
@ -60,6 +40,7 @@ collections: # A list of collections the CMS should be able to edit
- {label: Subtitle, name: subtitle, widget: string}
- {label: Body, name: body, widget: markdown}
- name: posts
label: Post
editor:
@ -89,6 +70,7 @@ collections: # A list of collections the CMS should be able to edit
- {label: Excerpt, name: excerpt, widget: text}
- {label: Content, name: body, widget: markdown}
- name: postCategories
label: Post Category
editor:
@ -98,3 +80,26 @@ collections: # A list of collections the CMS should be able to edit
create: true # Allow users to create new documents in this collection
fields: # The fields each document in this collection have
- {label: Title, name: title, widget: string}
- name: "settings"
label: "Settings"
delete: false # Prevent users from deleting documents in this collection
editor:
preview: false
files:
- file: "content/settings/global.yml"
label: "Global Settings"
name: "global-settings"
fields:
- {label: Site Title, name: siteTitle, widget: string}
- {label: Site Url, name: siteUrl, widget: string, required: false}
- {label: Site Description, name: siteDescription, widget: text, required: false}
- label: Social Media Card
name: socialMediaCard
widget: object
fields:
- {label: Image, name: image, widget: image, required: false}
- {label: Twitter Site Account, name: twitterSiteAccount, widget: string, required: false}
- {label: Twitter Creator Account, name: twitterCreatorAccount, widget: string, required: false}
- {label: Header Meta / Scripts, name: headerScripts, widget: text, required: false}