-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent.config.ts
More file actions
42 lines (41 loc) · 1.3 KB
/
Copy pathcontent.config.ts
File metadata and controls
42 lines (41 loc) · 1.3 KB
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
import { defineCollection, defineContentConfig, z } from '@nuxt/content';
export default defineContentConfig({
collections: {
blog: defineCollection({
type: 'page',
source: 'blog/*.md',
schema: z.object({
title: z.string(),
description: z.string().optional(),
image: z.string().optional(),
publishedDate: z.string().optional(),
}),
}),
talks: defineCollection({
type: 'data',
source: 'talks/*.md',
schema: z.object({
title: z.string(),
url: z.string(),
publishedDate: z.string().optional(),
description: z.string().optional(),
}),
}),
projects: defineCollection({
type: 'data',
source: 'projects/*.md',
schema: z.object({
title: z.string(),
image: z.string().optional(),
description: z.string(),
publishedDate: z.string().optional(),
links: z.array(
z.object({
title: z.string(),
url: z.string(),
}),
),
}),
}),
},
});