wf4/content.config.ts
webfussel 73f09ad76e ADD: NuxtContent
For RichText and blog later
2025-06-09 13:03:48 +02:00

23 lines
No EOL
502 B
TypeScript

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(),
}),
})
})
}
})