netlify-cms-react-starter/public/admin/config.yml
2017-10-13 17:23:27 +10:00

24 lines
951 B
YAML

# See https://github.com/netlify/netlify-cms/blob/master/example/config.yml
backend:
name: git-gateway
branch: netlify-cms # Branch to update (optional; defaults to master)
media_folder: "public/images/uploads" # Media files will be stored in the repo under static/images/uploads
public_folder: "/images/uploads" # The src attribute for uploaded media will begin with /images/uploads
collections: # A list of collections the CMS should be able to edit
- name: "pages"
label: "Pages"
files:
- file: "content/pages/home.json"
label: "Home Page"
name: "home-page"
fields:
- {label: Title, name: title, widget: string}
- {label: Body, name: body, widget: markdown}
- file: "content/pages/about.json"
label: "About Page"
name: "about-page"
fields:
- {label: Title, name: title, widget: string}
- {label: Body, name: body, widget: markdown}