feat: ajouter la gestion des contacts et des hobbies avec des ressources associées

This commit is contained in:
2025-11-14 18:13:14 +01:00
parent 025820a85d
commit d36ba22c9a
14 changed files with 321 additions and 23 deletions

View File

@@ -71,6 +71,20 @@ export default defineContentConfig({
endDate: z.string().optional(),
location: z.string()
})
}),
contact: defineCollection({
type: 'data',
source: 'contact.json',
schema: z.object({
body: z.array(z.object({
name: z.string(),
url: z.string().url()
}))
})
}),
hobbies: defineCollection({
type: 'page',
source: 'hobbies.md'
})
}
})