-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
45 lines (39 loc) · 1.57 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# static/admin/config.yml
backend:
name: github
repo: xkema/blog-demo-going-local-and-free-with-gatsby-and-netlify-cms
branch: main
local_backend: true
media_folder: uploads
slug:
encoding: "ascii"
clean_accents: true
collections:
- name: pages
label: Pages
folder: "src/pages"
public_folder: ../../uploads
create: true
fields:
- {label: "Content Key", name: "contentKey", widget: "hidden", default: "page", required: true}
- {label: "Title", name: "title", widget: "string"}
- {label: "Description", name: "description", widget: "text"}
- {label: "Body", name: "body", widget: "markdown", required: false}
- {label: "Featured Image", name: "featuredImage", widget: "image", required: false, allow_multiple: false, choose_url: false}
- name: designs
label: Designs
folder: "src/content/designs"
public_folder: ../../../uploads
create: true
fields:
- {label: "Content Key", name: "contentKey", widget: "hidden", default: "design", required: true}
- {label: "Title", name: "title", widget: "string"}
- {label: "Description", name: "description", widget: "text"}
- {label: "Featured Image", name: "featuredImage", widget: "image", allow_multiple: false, choose_url: false}
- label: "Images"
name: "images"
widget: "list"
fields:
- {label: "Title", name: "title", widget: "string"}
- {label: "Description", name: "description", widget: "text"}
- {label: "Image", name: "image", widget: "image", allow_multiple: false, choose_url: false}