gatsby-starter-netlify-cms/static/admin/config.yml
2017-10-18 17:43:20 -04:00

18 lines
854 B
YAML

backend:
name: github
repo: AustinGreen/gatsby-netlify-cms-boilerplate # Path to your Github repository
branch: master # Branch to update
media_folder: "/static"
collections:
- name: "blog" # Used in routes, e.g., /admin/collections/blog
label: "Blog" # Used in the UI
folder: "src/pages/blog" # The path to the folder where the documents are stored
create: true # Allow users to create new documents in this collection
slug: "{{year}}-{{month}}-{{day}}-{{slug}}" # Filename template, e.g., YYYY-MM-DD-title.md
fields: # The fields for each document, usually in front matter
- {label: "Layout", name: "layout", widget: "hidden", default: "blog"}
- {label: "Path", name: "path", widget: "string"}
- {label: "Title", name: "title", widget: "string"}
- {label: "Body", name: "body", widget: "markdown"}