2019-09-28 19:50:41 +03:00
|
|
|
backend:
|
|
|
|
name: git-gateway
|
|
|
|
|
2019-09-28 20:03:29 +03:00
|
|
|
media_folder: "examples/docs/images" # Folder where user uploaded files should go
|
|
|
|
public_folder: "examples/docs/images"
|
2019-09-28 19:50:41 +03:00
|
|
|
publish_mode: "editorial_workflow" # see https://www.netlifycms.org/docs/open-authoring/
|
|
|
|
|
|
|
|
collections: # A list of collections the CMS should be able to edit
|
|
|
|
- name: "post" # Used in routes, ie.: /admin/collections/:slug/edit
|
|
|
|
label: "Post" # Used in the UI, ie.: "New Post"
|
2019-09-28 20:17:52 +03:00
|
|
|
folder: "examples/docs/content/blog" # The path to the folder where the documents are stored
|
2019-09-28 20:14:07 +03:00
|
|
|
filter: {field: "type", value: "blog"}
|
2019-09-28 19:50:41 +03:00
|
|
|
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" }
|
|
|
|
- { label: "Publish Date", name: "published", widget: "date" }
|
|
|
|
- { label: "Intro Blurb", name: "description", widget: "text" }
|
|
|
|
- { label: "Image", name: "image", widget: "image", required: true }
|
2019-09-28 20:14:07 +03:00
|
|
|
- label: "Author"
|
2019-09-28 19:50:41 +03:00
|
|
|
name: "author"
|
|
|
|
widget: "select"
|
|
|
|
options: ["Dillon Kearns"]
|
|
|
|
default: "Dillon Kearns"
|
|
|
|
- { label: "Body", name: "body", widget: "markdown" }
|
|
|
|
- {
|
|
|
|
label: "Type",
|
|
|
|
name: "type",
|
|
|
|
widget: "hidden",
|
|
|
|
default: "blog",
|
|
|
|
required: false,
|
|
|
|
}
|
2019-09-28 20:14:07 +03:00
|
|
|
- name: "docs" # Used in routes, ie.: /admin/collections/:slug/edit
|
|
|
|
label: "Docs" # Used in the UI, ie.: "New Post"
|
2019-09-28 20:17:52 +03:00
|
|
|
folder: "examples/docs/content/docs" # The path to the folder where the documents are stored
|
2019-09-28 20:14:07 +03:00
|
|
|
filter: {field: "type", value: "doc"}
|
|
|
|
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" }
|
|
|
|
- { label: "Body", name: "body", widget: "markdown" }
|
|
|
|
- {
|
|
|
|
label: "Type",
|
|
|
|
name: "type",
|
|
|
|
widget: "hidden",
|
|
|
|
default: "doc",
|
|
|
|
required: false,
|
|
|
|
}
|