forked from robertguss/Astro-Theme-Creek
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudcannon.config.cjs
52 lines (51 loc) · 1.03 KB
/
cloudcannon.config.cjs
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
module.exports = {
source: ".",
output: "dist",
collections_config: {
posts: {
path: "src/pages/posts",
output: true,
parser: "front-matter",
glob: ['**/*.md'],
url: "/posts/[slug]",
_inputs: {
hero: {
type: 'image'
},
tags: {
type: "multiselect",
options: {
values: "collections.tags"
}
}
},
_enabled_editors: ['content', 'visual']
},
tags: {
path: "src/pages/tags",
output: true,
parser: "front-matter",
url: "/tags/[slug]",
glob: ['**/*.md'],
filter: {
exclude: ["index.md"]
},
_enabled_editors: ['data', 'visual']
},
pages: {
path: "src/pages",
output: true,
parser: "front-matter",
url: "/[slug]",
glob: ['**/*.md'],
filter: {
base: "strict"
},
_enabled_editors: ['visual']
}
},
_inputs: {
layout: { hidden: true }
},
paths: { uploads: 'public', static: 'public' },
}