2017-12-04 16:42:20 -08:00
|
|
|
backend:
|
|
|
|
name: github
|
|
|
|
repo: netlify/netlify-cms
|
2018-06-11 19:09:44 -07:00
|
|
|
branch: master
|
2018-05-23 17:42:54 -04:00
|
|
|
squash_merges: true
|
2017-12-04 16:42:20 -08:00
|
|
|
|
|
|
|
publish_mode: editorial_workflow
|
|
|
|
|
2018-08-07 14:46:54 -06:00
|
|
|
media_folder: 'website/static/img' # Folder where user uploaded files should go
|
|
|
|
public_folder: 'img'
|
2017-12-04 16:42:20 -08:00
|
|
|
|
|
|
|
collections: # A list of collections the CMS should be able to edit
|
2018-08-07 14:46:54 -06:00
|
|
|
- name: 'docs' # Used in routes, ie.: /admin/collections/:slug/edit
|
|
|
|
label: 'Docs' # Used in the UI, ie.: "New Post"
|
|
|
|
folder: 'website/content/docs' # The path to the folder where the documents are stored
|
2017-12-04 16:42:20 -08:00
|
|
|
create: true # Allow users to create new documents in this collection
|
|
|
|
fields: # The fields each document in this collection have
|
2018-08-07 14:46:54 -06:00
|
|
|
- { label: 'Title', name: 'title', widget: 'string', tagname: 'h1' }
|
|
|
|
- { label: 'Group', name: 'group', widget: 'string' }
|
|
|
|
- { label: 'Weight', name: 'weight', widget: 'number' }
|
|
|
|
- { label: 'Body', name: 'body', widget: 'markdown' }
|
|
|
|
- name: 'blog'
|
|
|
|
label: 'Blog'
|
|
|
|
label_singular: 'Post'
|
|
|
|
folder: 'website/site/content/blog'
|
2018-06-11 19:09:44 -07:00
|
|
|
create: true
|
|
|
|
fields:
|
2018-08-07 14:46:54 -06:00
|
|
|
- { label: 'Title', name: 'title', widget: 'string', tagname: 'h1' }
|
|
|
|
- { label: 'Author', name: 'author', widget: 'string' }
|
|
|
|
- { label: 'Description (for blog list)', name: 'description', widget: 'text' }
|
|
|
|
- {
|
|
|
|
label: 'Meta Description (defaults to Description)',
|
|
|
|
name: 'meta_description',
|
|
|
|
widget: 'text',
|
|
|
|
required: false,
|
|
|
|
}
|
|
|
|
- { label: 'Date', name: 'date', widget: 'date' }
|
|
|
|
- { label: 'Body', name: 'body', widget: 'markdown' }
|
2018-02-27 21:53:57 -05:00
|
|
|
- name: updates
|
|
|
|
label: Updates
|
2017-12-04 16:42:20 -08:00
|
|
|
files:
|
2018-02-27 21:53:57 -05:00
|
|
|
- name: releases
|
|
|
|
label: Releases
|
2018-07-25 07:47:26 -04:00
|
|
|
file: website/data/updates.yml
|
2018-02-27 21:53:57 -05:00
|
|
|
fields:
|
|
|
|
- name: updates
|
|
|
|
label: Releases
|
|
|
|
widget: list
|
|
|
|
fields:
|
2018-08-07 14:46:54 -06:00
|
|
|
- { name: version, label: Version }
|
|
|
|
- { name: date, label: Date, widget: date }
|
|
|
|
- { name: description, label: Description }
|
2017-12-04 16:42:20 -08:00
|
|
|
- name: notifications
|
|
|
|
label: Notifications
|
2018-07-25 07:47:26 -04:00
|
|
|
file: website/data/notifications.yml
|
2017-12-04 16:42:20 -08:00
|
|
|
description: Site-top notifications - publish one at a time
|
|
|
|
fields:
|
|
|
|
- name: notifications
|
|
|
|
label: Notifications
|
|
|
|
widget: list
|
|
|
|
fields:
|
2018-08-07 14:46:54 -06:00
|
|
|
- { label: Title, name: title, widget: string, tagname: h1 }
|
|
|
|
- { label: Published, name: published, widget: boolean }
|
|
|
|
- { label: Loud, name: loud, widget: boolean }
|
|
|
|
- { label: Message, name: message, widget: text }
|
|
|
|
- { label: URL, name: url }
|