add: content-pages plugin

This commit is contained in:
Robert Janus 2025-05-21 13:26:51 +02:00
parent f5fa5b2971
commit 03c36844e5
5 changed files with 42 additions and 1 deletions

13
content.config.ts Normal file
View file

@ -0,0 +1,13 @@
import { defineCollection, defineContentConfig, z } from '@nuxt/content'
export default defineContentConfig({
collections: {
wissen: defineCollection({
type: 'page',
source: 'wissen/*.md',
schema: z.object({
date: z.string()
})
})
}
})