-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig.yml
68 lines (67 loc) · 2.38 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
59
60
61
62
63
64
65
66
67
68
backend:
name: git-gateway
branch: main
media_folder: src/assets/uploads
public_folder: /assets/uploads
# Run "npx decap-server" for local backend
local_backend: true
editor:
preview: false
i18n:
structure: multiple_folders
locales: [en-CA, fr-CA]
default_locale: en-CA
collections:
- label: Posts
label_singular: Post
name: post
i18n: true
folder: src/collections/posts/
extension: md
create: true
fields:
- {label: Title, name: title, widget: string, i18n: true}
- {label: Excerpt, name: excerpt, widget: string, required: false, i18n: true}
- {label: Author, name: author, widget: string, i18n: true}
- {label: Publication Date, name: date, widget: datetime, i18n: duplicate}
- {label: Body, name: body, widget: markdown, i18n: true}
- label: Pages
label_singular: Page
name: page
i18n: true
folder: src/collections/pages/
extension: md
create: true
filter: {field: layout, value: layouts/page}
fields:
- {label: Title, name: title, widget: string, i18n: true}
- {label: Layout, name: layout, widget: hidden, i18n: duplicate, default: layouts/page}
- {label: Navigation Order, name: order, widget: number, min: 0, i18n: duplicate}
- {label: Navigation Label, name: key, widget: string, required: false, i18n: true}
- {label: Excerpt, name: excerpt, widget: string, required: false, i18n: true}
- {label: Body, name: body, widget: markdown, i18n: true}
- label: Site Configuration
name: config
i18n: false
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, i18n: false}
- label: Site Data
name: data
i18n:
structure: single_file
files:
- label: Site Data
name: site
file: src/_data/site.json
i18n: true
fields:
- {label: Name, name: name, widget: string, i18n: true}
- {label: Description, name: description, widget: text, i18n: true}
- {label: Author Name, name: authorName, widget: string, i18n: true}
- {label: Author Email, name: authorEmail, widget: string, i18n: duplicate}
- {label: Author Website, name: authorWebsite, widget: string, i18n: duplicate}