fix: réorganiser la configuration du site et des collections dans nuxt.config.ts et content.config.ts

This commit is contained in:
2026-01-02 19:27:02 +01:00
parent 9de199e9d0
commit aedd8131d9
3 changed files with 39 additions and 27 deletions

View File

@@ -5,22 +5,23 @@ export const collections = {
type: 'page',
source: 'index.md'
}),
projects: defineCollection({
type: 'data',
source: 'projects/*.md',
schema: z.object({
slug: z.string(),
title: z.string(),
type: z.string().optional(),
description: z.string(),
publishedAt: z.string(),
readingTime: z.number().optional(),
tags: z.array(z.string()),
favorite: z.boolean().optional(),
status: z.enum(['active', 'completed', 'archived', 'in progress']),
icon: z.string()
})
}),
projects: defineCollection(
asSeoCollection({
type: 'data',
source: 'projects/*.md',
schema: z.object({
slug: z.string(),
title: z.string(),
type: z.string().optional(),
description: z.string(),
publishedAt: z.string(),
readingTime: z.number().optional(),
tags: z.array(z.string()),
favorite: z.boolean().optional(),
status: z.enum(['active', 'completed', 'archived', 'in progress']),
icon: z.string()
})
})),
uses: defineCollection({
type: 'page',
source: 'uses.md'