mirror of
https://github.com/kingomarnajjar/gatsby-starter-netlify-cms.git
synced 2026-07-26 06:37:25 +10:00
18 lines
854 B
YAML
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"}
|