-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.pages.yml
57 lines (57 loc) · 1.61 KB
/
.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
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
media:
input: public/media
output: media
content:
- name: posts
label: Posts
path: _content
type: collection
view:
fields: [title, tag, date]
fields:
- { name: title, label: Title, type: string }
- { name: date, label: Date, type: date }
- { name: tag, label: Tag, type: string }
- {
name: description,
label: Description,
type: string,
options: { maxlength: 160 },
}
- { name: image, label: Image, type: image }
- { name: imageAlt, label: Image Attribute, type: string }
- { name: body, label: Body, type: rich-text }
- { name: lastModified, label: Last Updated, type: date }
- { name: signature, label: Signature, type: boolean, default: false }
- {
name: type,
label: type,
type: select,
options: { values: [Post, Video] },
}
filename: "{primary}.mdx"
- name: videos
label: Videos
path: _content
type: collection
view:
fields: [title, date, tag]
fields:
- { name: title, label: Title, type: string }
- { name: date, label: Date, type: date }
- { name: tag, label: Tag, type: string }
- {
name: description,
label: Description,
type: string,
options: { maxlength: 160 },
}
- { name: videoUrl, label: Video URL, type: string }
- { name: duration, label: Duration, type: string }
- {
name: type,
label: type,
type: select,
options: { values: [Post, Video] },
}
filename: "{primary}.mdx"