add: Content-Pages with markdown support (WIP)

This commit is contained in:
Robert Janus 2025-05-23 14:57:03 +02:00
parent 03c36844e5
commit 36a90bb057
7 changed files with 2982 additions and 33 deletions

View file

@ -1,13 +1,14 @@
import { defineCollection, defineContentConfig, z } from '@nuxt/content'
import { defineCollection, defineContentConfig } from '@nuxt/content'
import { asSitemapCollection } from '@nuxtjs/sitemap/content'
export default defineContentConfig({
collections: {
wissen: defineCollection({
type: 'page',
source: 'wissen/*.md',
schema: z.object({
date: z.string()
})
})
}
})
wissen: defineCollection(
// adds the robots frontmatter key to the collection
asSitemapCollection({
type: 'page',
source: 'wissen/*.md',
}),
),
},
})