chore: update website for preview links (#2085)

* chore: update website for preview links

* fix formatting
This commit is contained in:
Shawn Erquhart
2019-02-12 10:56:56 -05:00
committed by GitHub
parent e26548dc22
commit 8ccbdf928e
5 changed files with 946 additions and 402 deletions

View File

@ -3,6 +3,8 @@ backend:
repo: netlify/netlify-cms
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
@ -13,6 +15,7 @@ collections: # A list of collections the CMS should be able to 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"}
@ -21,6 +24,7 @@ collections: # A list of collections the CMS should be able to edit
- 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"}
@ -30,6 +34,7 @@ collections: # A list of collections the CMS should be able to edit
label: "Blog"
label_singular: "Post"
folder: "website/content/blog"
preview_path: "blog/{{year}}/{{month}}/{{title}}"
create: true
fields:
- {label: "Title", name: "title", widget: "string", tagname: "h1"}