-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent.config.ts
65 lines (64 loc) · 1.48 KB
/
content.config.ts
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
53
54
55
56
57
58
59
60
61
62
63
64
65
import { defineCollection, defineContentConfig, z } from '@nuxt/content'
export default defineContentConfig({
collections: {
articles: defineCollection({
type: 'page',
source: 'articles/*.md',
schema: z.object({
title: z.string(),
description: z.string(),
published: z.date(),
slug: z.string(),
cover: z.string()
})
}),
bookmarks: defineCollection({
type: 'data',
source: 'bookmarks/**.yml',
schema: z.object({
name: z.string(),
url: z.string()
})
}),
pages: defineCollection({
type: 'page',
source: 'pages/*.md',
schema: z.object({
title: z.string(),
description: z.string(),
slug: z.string(),
cover: z.string()
})
}),
projects: defineCollection({
type: 'data',
source: 'projects/**.yml',
schema: z.object({
name: z.string(),
description: z.string(),
url: z.string(),
language: z.string(),
icon: z.string()
})
}),
social: defineCollection({
type: 'data',
source: 'social/**.yml',
schema: z.object({
name: z.string(),
url: z.string(),
icon: z.string()
})
}),
uses: defineCollection({
type: 'data',
source: 'uses/**.yml',
schema: z.object({
name: z.string(),
description: z.string(),
url: z.string(),
category: z.string()
})
})
}
})