-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.yml
58 lines (57 loc) · 1.98 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
46
47
48
49
50
51
52
53
54
55
56
57
58
backend:
name: git-gateway
branch: main
media_folder: src/assets/uploads
public_folder: /assets/uploads
# Run "npx netlify-cms-proxy-server" for local backend
local_backend: true
editor:
preview: false
collections:
- label: Posts
label_singular: Post
name: post
folder: src/collections/posts/
extension: md
create: true
fields:
- {label: Title, name: title, widget: string}
- {label: Excerpt, name: excerpt, widget: string, required: false}
- {label: Author, name: author, widget: string}
- {label: Publication Date, name: date, widget: datetime}
- {label: Body, name: body, widget: markdown}
- label: Pages
label_singular: Page
name: page
folder: src/collections/pages/
extension: md
create: true
filter: {field: layout, value: layouts/page}
fields:
- {label: Title, name: title, widget: string}
- {label: Layout, name: layout, widget: hidden, default: layouts/page}
- {label: Navigation Order, name: order, widget: number, min: 0}
- {label: Navigation Label, name: key, widget: string, required: false}
- {label: Excerpt, name: excerpt, widget: string, required: false}
- {label: Body, name: body, widget: markdown}
- label: Site Configuration
name: config
files:
- label: Site Configuration
name: config
file: src/_data/config.json
fields:
- {label: URL, name: url, widget: string}
- {label: Maximum Posts in RSS Feed, name: maxPostsInFeed, widget: number, min: 1}
- label: Site Data
name: data
files:
- label: Site Data
name: site
file: src/_data/site.json
fields:
- {label: Name, name: name, widget: string}
- {label: Description, name: description, widget: text}
- {label: Author Name, name: authorName, widget: string}
- {label: Author Email, name: authorEmail, widget: string}
- {label: Author Website, name: authorWebsite, widget: string}