Merge pull request #331 from netlify/fix-example-optional

fix example optional field
This commit is contained in:
Shawn Erquhart 2017-04-03 21:54:57 -04:00 committed by GitHub
commit f9e2b28d27

View File

@ -12,7 +12,7 @@ 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", tagname: "h1"}
- {label: "Cover Image", name: "image", widget: "image", optional: true, tagname: ""}
- {label: "Cover Image", name: "image", widget: "image", required: false, tagname: ""}
- {label: "Body", name: "body", widget: "markdown"}
meta:
- {label: "Publish Date", name: "date", widget: "datetime", format: "YYYY-MM-DD hh:mma"}