forked from zankhq/astros
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pages.yml
30 lines (30 loc) · 1.12 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
media:
input: public
output: /
content:
- name: posts
label: Posts
type: collection
path: src/content/blog
view:
fields: [ title, draft, date ]
fields:
- { name: author, label: Author, type: string }
- { name: pubDatetime, label: Date, type: date }
- { name: modDatetime, label: Date, type: date }
- { name: title, label: Title, type: string, required: true }
- { name: ogImage, label: Title, type: string }
- { name: slug, label: Slug, type: string }
- { name: featured, label: Featured, type: boolean }
- { name: draft, label: Draft, type: boolean }
- { name: tags, label: Tags, type: string, list: true }
- { name: description, label: Description, type: string }
- { name: body, label: Body, type: rich-text }
- name: about
label: About page
type: file
path: src/pages/about.md
fields:
- { name: layout, type: string, hidden: true, default: layouts/base.njk }
- { name: title, label: Title, type: string }
- { name: body, label: Body, type: rich-text, options: { input: public/assets, output: /assets } }