mirror of
https://github.com/ArthurDanjou/artapi.git
synced 2026-01-23 22:40:26 +01:00
feat: ajouter la gestion des contacts et des hobbies avec des ressources associées
This commit is contained in:
@@ -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'
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user