forked from philhawksworth/eleventyone
-
Notifications
You must be signed in to change notification settings - Fork 1
/
stackbit.yaml
executable file
·78 lines (78 loc) · 1.65 KB
/
stackbit.yaml
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
stackbitVersion: ~0.2.34
ssgName: custom
buildCommand: "npm install && npm run build"
publishDir: dist
staticDir: "src/site"
uploadDir: "images"
pagesDir: "src/site"
pageLayoutKey: layout
models:
home:
type: page
label: Homepage
singleInstance: true
file: index.md
layout: layouts/base.njk
fields:
- type: string
name: title
label: Title
required: true
- type: text
name: subtitle
label: Subtitle
- type: object
name: menus
label: Show in menu
fields:
- type: string
name: title
label: Title
- type: string
name: subtitle
label: Subtitle
- type: number
name: weight
label: Weight
page:
type: page
label: Page
match: "**/*.md"
exclude: "{index.md,_data/**,posts/**}"
layout: layouts/base.njk
fields:
- type: string
name: title
label: Title
required: true
- type: text
name: subtitle
label: Subtitle
- type: object
name: menus
label: Show in menu
fields:
- type: string
name: title
label: Title
- type: string
name: subtitle
label: Subtitle
- type: number
name: weight
label: Weight
post:
type: page
label: Post
folder: posts
match: "**/*.md"
layout: layouts/post.njk
fields:
- type: string
name: title
label: Title
required: true
- type: date
name: date
label: Date
required: true