add: Content-Pages with markdown support (WIP)
This commit is contained in:
parent
03c36844e5
commit
36a90bb057
7 changed files with 2982 additions and 33 deletions
|
@ -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',
|
||||
}),
|
||||
),
|
||||
},
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue