Skip to content

Commit e8a5467

Browse files
committed
updated external config
1 parent 7c4cd1b commit e8a5467

File tree

1 file changed

+135
-9
lines changed

1 file changed

+135
-9
lines changed

public/demo/frontmatter.extends.json

Lines changed: 135 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,34 @@
11
{
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",
37
"frontMatter.content.publicFolder": "static",
8+
"frontMatter.dashboard.contentTags": "tags",
9+
"frontMatter.content.wysiwyg": true,
10+
"frontMatter.preview.host": "http://localhost:3000",
411
"frontMatter.content.pageFolders": [
512
{
613
"title": "external",
714
"path": "[[workspace]]/external"
815
}
916
],
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+
],
1032
"frontMatter.taxonomy.contentTypes": [
1133
{
1234
"name": "external",
@@ -17,24 +39,128 @@
1739
"title": "Title",
1840
"name": "title",
1941
"type": "string",
20-
"single": true,
21-
"default": "{{title}}"
42+
"required": true
43+
},
44+
{
45+
"title": "Title (long)",
46+
"name": "longTitle",
47+
"type": "string"
2248
},
2349
{
2450
"title": "Slug",
2551
"name": "slug",
2652
"type": "slug",
27-
"editable": true,
28-
"default": "{{slug}}"
53+
"required": true
2954
},
3055
{
31-
"title": "Created On",
56+
"title": "Description",
57+
"name": "description",
58+
"type": "string",
59+
"required": true
60+
},
61+
{
62+
"title": "Publishing date",
3263
"name": "date",
3364
"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
36104
}
37105
]
38106
}
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+
}
40166
}

0 commit comments

Comments
 (0)