1
1
{
2
- "frontMatter.framework.id" : " frontmatter" ,
2
+ "$schema" : " https://beta.frontmatter.codes/frontmatter.schema.json" ,
3
+ "frontMatter.git.enabled" : true ,
4
+ "frontMatter.git.actions" : true ,
5
+ "frontMatter.dashboard.openOnStart" : false ,
6
+ "frontMatter.framework.id" : " frontmattercms" ,
3
7
"frontMatter.content.publicFolder" : " static" ,
8
+ "frontMatter.dashboard.contentTags" : " tags" ,
9
+ "frontMatter.content.wysiwyg" : true ,
10
+ "frontMatter.preview.host" : " http://localhost:3000" ,
4
11
"frontMatter.content.pageFolders" : [
5
12
{
6
13
"title" : " external" ,
7
14
"path" : " [[workspace]]/external"
8
15
}
9
16
],
17
+ "frontMatter.content.defaultSorting" : " DateDesc" ,
18
+ "frontMatter.content.sorting" : [
19
+ {
20
+ "title" : " Date (asc)" ,
21
+ "name" : " date" ,
22
+ "order" : " asc" ,
23
+ "type" : " date"
24
+ },
25
+ {
26
+ "title" : " Date (desc)" ,
27
+ "name" : " date" ,
28
+ "order" : " desc" ,
29
+ "type" : " date"
30
+ }
31
+ ],
10
32
"frontMatter.taxonomy.contentTypes" : [
11
33
{
12
34
"name" : " external" ,
17
39
"title" : " Title" ,
18
40
"name" : " title" ,
19
41
"type" : " string" ,
20
- "single" : true ,
21
- "default" : " {{title}}"
42
+ "required" : true
43
+ },
44
+ {
45
+ "title" : " Title (long)" ,
46
+ "name" : " longTitle" ,
47
+ "type" : " string"
22
48
},
23
49
{
24
50
"title" : " Slug" ,
25
51
"name" : " slug" ,
26
52
"type" : " slug" ,
27
- "editable" : true ,
28
- "default" : " {{slug}}"
53
+ "required" : true
29
54
},
30
55
{
31
- "title" : " Created On" ,
56
+ "title" : " Description" ,
57
+ "name" : " description" ,
58
+ "type" : " string" ,
59
+ "required" : true
60
+ },
61
+ {
62
+ "title" : " Publishing date" ,
32
63
"name" : " date" ,
33
64
"type" : " datetime" ,
34
- "isPublishDate" : true ,
35
- "default" : " {{now}}"
65
+ "required" : true
66
+ },
67
+ {
68
+ "title" : " Modified date" ,
69
+ "name" : " lastmod" ,
70
+ "type" : " datetime"
71
+ },
72
+ {
73
+ "title" : " Content preview" ,
74
+ "name" : " preview" ,
75
+ "type" : " image" ,
76
+ "default" : " {{ogImage}}" ,
77
+ "required" : true
78
+ },
79
+ {
80
+ "title" : " Is in draft" ,
81
+ "name" : " draft" ,
82
+ "type" : " draft" ,
83
+ "default" : false
84
+ },
85
+ {
86
+ "title" : " Comments" ,
87
+ "name" : " comments" ,
88
+ "type" : " boolean" ,
89
+ "default" : true
90
+ },
91
+ {
92
+ "title" : " Tags" ,
93
+ "name" : " tags" ,
94
+ "type" : " tags" ,
95
+ "default" : [],
96
+ "required" : true
97
+ },
98
+ {
99
+ "title" : " type" ,
100
+ "name" : " type" ,
101
+ "type" : " string" ,
102
+ "default" : " post" ,
103
+ "hidden" : true
36
104
}
37
105
]
38
106
}
39
- ]
107
+ ],
108
+ "frontMatter.content.placeholders" : [
109
+ {
110
+ "id" : " ogImage" ,
111
+ "value" : " https://frontmatter.codes/{{slug}}"
112
+ }
113
+ ],
114
+ "frontMatter.custom.scripts" : [
115
+ {
116
+ "title" : " Generate social image" ,
117
+ "script" : " ./scripts/social-img.js" ,
118
+ "command" : " ~/.nvm/versions/node/v16.11.1/bin/node"
119
+ },
120
+ {
121
+ "title" : " Bash script" ,
122
+ "script" : " ./scripts/bash-test.sh" ,
123
+ "command" : " bash"
124
+ },
125
+ {
126
+ "title" : " Python script" ,
127
+ "script" : " ./scripts/python-test.py" ,
128
+ "command" : " python3"
129
+ }
130
+ ],
131
+ "frontMatter.taxonomy.categories" : [
132
+ " docs" ,
133
+ " community" ,
134
+ " showcase" ,
135
+ " changelog" ,
136
+ " sponsor"
137
+ ],
138
+ "frontMatter.taxonomy.tags" : [
139
+ " getting-started" ,
140
+ " content-creation" ,
141
+ " dashboard" ,
142
+ " editor-panel"
143
+ ],
144
+ "frontMatter.taxonomy.customTaxonomy" : [
145
+ {
146
+ "id" : " customTags" ,
147
+ "options" : [
148
+ " frontmatter" ,
149
+ " cms"
150
+ ]
151
+ }
152
+ ],
153
+ "frontMatter.content.snippets" : {
154
+ "Image snippet" : {
155
+ "body" : " {{< image \" [[&mediaUrl]]\" \" [[caption]]\" >}}" ,
156
+ "isMediaSnippet" : true ,
157
+ "description" : " "
158
+ },
159
+ "Video snippet" : {
160
+ "body" : [
161
+ " {{< video \" [[&mediaUrl]]\" \" [[caption]]\" >}}"
162
+ ],
163
+ "isMediaSnippet" : true
164
+ }
165
+ }
40
166
}
0 commit comments