-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcontent.config.ts
More file actions
98 lines (90 loc) · 2.5 KB
/
content.config.ts
File metadata and controls
98 lines (90 loc) · 2.5 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
import { defineContentConfig, defineCollection } from '@nuxt/content';
import { z } from 'zod';
export default defineContentConfig({
collections: {
// YAML configuration files
navigation: defineCollection({
source: 'navigation.yml',
type: 'data',
}),
footer: defineCollection({
source: 'footer.yml',
type: 'data',
}),
links: defineCollection({
source: 'links.yml',
type: 'data',
}),
// Markdown collections
boards: defineCollection({
source: 'boards/*.md',
type: 'page',
schema: z.object({
year: z.string(),
boardNumber: z.number(),
isCurrent: z.boolean().optional(),
isFoundingBoard: z.boolean().optional(),
groupPhoto: z.string().optional(),
members: z.array(
z.object({
name: z.string(),
function: z.string(),
photo: z.string().optional(),
email: z.string().optional(),
figcaption: z.string().optional(),
responsibilities: z.array(z.string()).optional(),
commissions: z.array(z.string()).optional(),
}),
),
}),
}),
partners: defineCollection({
source: 'partners/**/*.md',
type: 'page',
schema: z.object({
slug: z.string().optional(),
title: z.string(),
tier: z.enum(['main', 'premium', 'regular']).optional(),
partnerSlug: z.string().optional(), // for job offers
imgUrl: z.string().optional(),
imgUrlDark: z.string().optional(),
url: z.string().optional(),
order: z.number().optional(),
featured: z.boolean().optional(),
}),
}),
commissies: defineCollection({
source: 'commissies/*.md',
type: 'page',
schema: z.object({
title: z.string(),
imgUrl: z.string(),
order: z.number(),
}),
}),
vcp: defineCollection({
source: 'vcp/*.md',
type: 'page',
schema: z.object({
name: z.string(),
phonenumber: z.string(),
email: z.string(),
status: z.string(),
photo: z.string(),
order: z.number(),
funfacts: z.array(z.string()),
}),
}),
dispuut: defineCollection({
source: 'dispuut/*.md',
type: 'page',
schema: z.object({
title: z.string(),
abbreviation: z.string().optional(),
imgUrl: z.string(),
website: z.string().optional(),
instagram: z.string().optional(),
}),
}),
},
});