fix: mettre à jour la configuration des collections et des fichiers de contenu pour une meilleure gestion des données

This commit is contained in:
2025-12-16 16:38:33 +01:00
parent 629f917af8
commit 579f7b4030
8 changed files with 41 additions and 28 deletions

View File

@@ -3,7 +3,7 @@ import { defineCollection, defineContentConfig, z } from '@nuxt/content'
export default defineContentConfig({
collections: {
projects: defineCollection({
type: 'page',
type: 'data',
source: 'projects/*.md',
schema: z.object({
slug: z.string(),
@@ -34,7 +34,7 @@ export default defineContentConfig({
})
}),
skills: defineCollection({
type: 'page',
type: 'data',
source: 'skills.json',
schema: z.object({
description: z.string(),
@@ -74,7 +74,7 @@ export default defineContentConfig({
})
}),
contact: defineCollection({
type: 'page',
type: 'data',
source: 'contact.json',
schema: z.object({
body: z.array(z.object({
@@ -86,11 +86,11 @@ export default defineContentConfig({
})
}),
hobbies: defineCollection({
type: 'page',
type: 'data',
source: 'hobbies.md'
}),
languages: defineCollection({
type: 'page',
type: 'data',
source: 'languages.json',
schema: z.object({
body: z.array(z.object({
@@ -101,7 +101,7 @@ export default defineContentConfig({
})
}),
profile: defineCollection({
type: 'page',
type: 'data',
source: 'profile.md'
}),
documentation: defineCollection({