-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path_cms.ts
More file actions
39 lines (34 loc) · 702 Bytes
/
_cms.ts
File metadata and controls
39 lines (34 loc) · 702 Bytes
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
import CMS from "lume/cms/mod.ts";
const cms = CMS();
cms.document({
name: "Site settings",
description: "Default settings for the site",
store: "src:_data.yml",
fields: [
"lang: text",
{
name: "metas",
type: "object",
fields: [
"site: text",
"twitter: text",
"fediverse: text",
"icon: file",
"lang: hidden",
"generator: checkbox",
],
},
],
});
cms.document({
name: "Homepage",
description: "Main page of the site",
store: "src:index.vto",
fields: [
"layout: hidden",
"title: text",
"content: code",
],
});
cms.upload("uploads: Uploaded files", "src:uploads");
export default cms;