rickvanlieshout.com/static/admin/config.yml

43 lines
1.6 KiB
YAML
Raw Normal View History

2018-11-11 17:36:32 +01:00
backend:
name: git-gateway
2019-01-21 23:11:53 +01:00
branch: master
2018-11-11 17:36:32 +01:00
2019-01-21 13:26:08 +01:00
media_folder: "static/media"
2018-12-16 16:10:59 +01:00
public_folder: "/media"
2018-11-11 17:36:32 +01:00
# Uncomment to leverage Netlify CMS UI authoring flow
# see: https://www.netlifycms.org/docs/configuration-options/#publish-mode
# publish_mode: editorial_workflow
2018-11-11 17:36:32 +01:00
collections:
- name: "posts"
label: "Posts"
folder: "content/posts"
create: true
2019-01-21 13:26:08 +01:00
slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
preview_path: "posts/{{fields.slug}}"
2018-11-11 17:36:32 +01:00
fields:
- {label: "Template", name: "template", widget: "hidden", default: "post"}
- {label: "Title", name: "title", widget: "string"}
- {label: "Slug", name: "slug", widget: "string"}
- {label: "Social Image", name: "socialImage", widget: "image"}
2018-11-11 17:36:32 +01:00
- {label: "Draft", name: "draft", widget: "boolean", default: true}
- {label: "Publish Date", name: "date", widget: "datetime"}
- {label: "Description", name: "description", widget: "text"}
- {label: "Category", name: "category", widget: "string"}
- {label: "Body", name: "body", widget: "markdown"}
- {label: "Tags", name: "tags", widget: "list"}
- name: "pages"
label: "Pages"
folder: "content/pages"
create: true
2018-12-16 16:10:59 +01:00
slug: "{{slug}}"
2018-11-11 17:36:32 +01:00
fields:
- {label: "Template", name: "template", widget: "hidden", default: "page"}
- {label: "Title", name: "title", widget: "string"}
- {label: "Slug", name: "slug", widget: "string"}
- {label: "Social Image", name: "socialImage", widget: "image"}
2018-11-11 17:36:32 +01:00
- {label: "Draft", name: "draft", widget: "boolean", default: true}
- {label: "Body", name: "body", widget: "markdown"}