forked from pages-cms/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pages.yml
55 lines (55 loc) · 1.89 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
media: src/media
content:
- name: docs
label: Documentation
type: collection
path: src/docs
view:
fields: [ title, order ]
primary: title
sort: [ order, title ]
default:
sort: order
order: asc
fields:
- { name: title, label: Title, type: string, required: true }
- { name: title, label: Title, type: string, required: true }
- { name: description, label: Description, type: string, options: { maxlength: 180 }}
- { name: order, label: Order, type: number }
- { name: body, label: Body, type: rich-text }
- label: Home page
path: src/index.njk
name: homepage
type: file
fields:
- { name: layout, type: string, hidden: true, default: layouts/base.njk }
- { name: title, label: Title, type: string, required: true }
- { name: description, label: Description, type: string }
- name: features
label: Features
type: object
fields:
- { name: title, label: Title, type: string }
- name: entries
label: Entries
type: object
list: true
fields:
- { name: title, label: Title, type: string }
- { name: description, label: Description, type: string }
- { name: icon, label: Icon, type: string }
- { name: pro, label: Pro, type: boolean }
- { name: soon, label: Soon, type: boolean }
- name: faq
label: FAQ
type: object
fields:
- { name: title, label: Title, type: string }
- name: entries
label: Entries
type: object
list: true
fields:
- { name: question, label: Question, type: string }
- { name: answer, label: Answer, type: text, options: { rows: 5 } }
- { name: body, label: Body, type: code, options: { format: html} }