ADD: NuxtContent

For RichText and blog later
This commit is contained in:
webfussel 2025-06-09 13:03:48 +02:00
parent 9930b39578
commit 73f09ad76e
8 changed files with 3230 additions and 428 deletions

23
content.config.ts Normal file
View file

@ -0,0 +1,23 @@
import { defineContentConfig, defineCollection, z } from '@nuxt/content'
export default defineContentConfig({
collections: {
blog: defineCollection({
type: 'page',
source: 'blog/**/*.md'
}),
skills: defineCollection({
type: 'page',
source: 'snippets/skills/*.md',
schema: z.object({
title: z.string(),
img: z.object({
path: z.string(),
name: z.string(),
position: z.string(),
}),
})
})
}
})