wf4/content.config.ts
webfussel 48efe0f75b fix: FAQ in NuxtContent
FAQ converted to NuxtContent
2025-06-10 20:03:42 +02:00

31 lines
No EOL
655 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(),
}),
})
}),
faq: defineCollection({
type: 'page',
source: 'snippets/faq/*.md',
schema: z.object({
title: z.string(),
})
})
}
})