wf4/content.config.ts
webfussel a86b89dc98 add: extract plain faq
Add Schema Org for FAQ
2025-06-11 08:54:32 +02:00

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