98 lines
3.9 KiB
YAML
Raw Normal View History

backend:
name: github
repo: netlify/netlify-cms
2018-05-23 17:42:54 -04:00
squash_merges: true
site_url: "https://www.netlifycms.org"
publish_mode: editorial_workflow
media_folder: "website/static/img" # Folder where user uploaded files should go
public_folder: "img"
collections: # A list of collections the CMS should be able to edit
- 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
create: true # Allow users to create new documents in this collection
preview_path: "docs/{{slug}}"
fields: # The fields each document in this collection have
- {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: "widget_docs" # Used in routes, ie.: /admin/collections/:slug/edit
label: "Widget Docs" # Used in the UI, ie.: "New Post"
folder: "website/content/docs/widgets" # The path to the folder where the documents are stored
preview_path: "docs/widgets/{{title}}"
create: true # Allow users to create new documents in this collection
fields: # The fields each document in this collection have
- {label: "Name", name: "title"}
- {label: "Label", name: "label"}
- {label: "Body", name: "body", widget: "markdown"}
- name: "blog"
label: "Blog"
label_singular: "Post"
folder: "website/content/blog"
preview_path: "blog/{{year}}/{{month}}/{{title}}"
2018-06-11 19:09:44 -07:00
create: true
fields:
- {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: "Twitter Image", name: "twitter_image", widget: "image"}
- {label: "Date", name: "date", widget: "date"}
- {label: "Body", name: "body", widget: "markdown"}
- name: community
label: Community
2019-06-26 15:52:47 -04:00
files:
- name: community
label: Community
file: website/content/pages/community.md
preview_path: "community"
fields:
2019-06-26 15:52:47 -04:00
- {label: Title, name: title}
- {label: Headline, name: headline}
- {label: Subheading, name: subhead}
- label: Sections
name: sections
widget: list
fields:
- {name: title, label: Title}
2019-06-26 15:52:47 -04:00
- name: channels
label: Channels
widget: list
fields:
- {name: title, label: Title}
- {name: url, label: URL}
- {name: description, label: Description}
2018-02-27 21:53:57 -05:00
- name: updates
label: Updates
files:
2018-02-27 21:53:57 -05:00
- name: releases
label: Releases
file: website/data/updates.yml
2018-02-27 21:53:57 -05:00
fields:
- name: updates
label: Releases
widget: list
fields:
- {name: version, label: Version}
- {name: date, label: Date, widget: date}
- {name: description, label: Description}
- name: notifications
label: Notifications
file: website/data/notifications.yml
description: Site-top notifications - publish one at a time
fields:
- name: notifications
label: Notifications
widget: list
fields:
- {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}