chore: add all projects content

This commit is contained in:
2025-12-10 01:06:28 +01:00
parent e30124e3f5
commit deaa601efd
17 changed files with 189 additions and 28 deletions

View File

@@ -1,10 +1,26 @@
import { defineContentConfig, defineCollection } from '@nuxt/content'
import { defineContentConfig, defineCollection, z } from '@nuxt/content'
export default defineContentConfig({
collections: {
content: defineCollection({
type: 'page',
source: '**/*.md'
source: '*.md',
schema: z.object({
})
}),
projects: defineCollection({
type: 'page',
source: 'projects/*.md',
schema: z.object({
order: z.number(),
title: z.string(),
shortDescription: z.string(),
description: z.string(),
image: z.string(),
preview: z.string(),
isDraft: z.boolean()
})
})
}
})