mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2025-01-05 12:57:33 +03:00
Update netlify cms config.
This commit is contained in:
parent
3ab1c078ec
commit
1baf3f1829
20
examples/docs/static/admin/config.yml
vendored
20
examples/docs/static/admin/config.yml
vendored
@ -8,14 +8,15 @@ publish_mode: "editorial_workflow" # see https://www.netlifycms.org/docs/open-au
|
||||
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"
|
||||
folder: "examples/docs/content/blog" # The path to the folder where the documents are stored
|
||||
folder: "examples/docs/content" # The path to the folder where the documents are stored
|
||||
filter: {field: "type", value: "blog"}
|
||||
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 }
|
||||
- label: "Align Content"
|
||||
- label: "Author"
|
||||
name: "author"
|
||||
widget: "select"
|
||||
options: ["Dillon Kearns"]
|
||||
@ -28,3 +29,18 @@ collections: # A list of collections the CMS should be able to edit
|
||||
default: "blog",
|
||||
required: false,
|
||||
}
|
||||
- name: "docs" # Used in routes, ie.: /admin/collections/:slug/edit
|
||||
label: "Docs" # Used in the UI, ie.: "New Post"
|
||||
folder: "examples/docs/content" # The path to the folder where the documents are stored
|
||||
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,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user