-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.pages.yml
28 lines (28 loc) · 910 Bytes
/
.pages.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
media:
input: public/assets
output: /assets
categories: [ "image" ]
content:
- name: posts
label: Posts
type: collection
path: _posts
view:
fields: [ coverImage, title, date ]
fields:
- { name: title, label: Title, type: string, required: true }
- { name: excerpt, label: Excerpt, type: string }
- { name: coverImage, label: Cover image, type: image }
- { name: date, label: Date, type: date, options: { time: true, format: "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'" } }
- name: author
label: Author
type: object
fields:
- { name: name, label: Name, type: string }
- { name: picture, label: Picture, type: image }
- name: ogImage
label: Image (social sharing)
type: object
fields:
- { name: url, label: URL, type: image }
- { name: body, label: Body, type: rich-text }