-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pages.yml
53 lines (53 loc) · 1.48 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
content:
- name: blog
label: Blog Posts
type: collection
path: src/content/blog
filename: "{year}-{month}-{day}-{primary}.md"
fields:
- name: title
label: Title
type: string
description: "The title of the blog post."
required: true
- name: pubDate
label: Publication Date
type: date
description: "The date when the blog post was published."
options:
time: true
format: YYYY-MM-DDTHH:mm:ss.SSSZ
- name: tags
label: Tags
type: string
description: "A list of tags associated with the blog post. Use kebab-case."
list: true
pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
- name: socialDescription
label: Social Description
type: string
description: "A short description for social media platforms. Max 155 characters."
options:
maxlength: 155
# - name: image
# label: Image
# type: image
# description: "An optional URL to the image for the blog post."
# options:
# input: src/images
# output: images
# path: src/images
- name: featured
label: Featured Post
type: boolean
description: "Show post on frontpage"
- name: body
label: Body
type: rich-text
view:
fields: [title, pubDate]
primary: title
sort: [pubDate, title]
default:
sort: pubDate
order: desc