add: content-pages plugin
This commit is contained in:
parent
f5fa5b2971
commit
03c36844e5
5 changed files with 42 additions and 1 deletions
13
content.config.ts
Normal file
13
content.config.ts
Normal 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()
|
||||
})
|
||||
})
|
||||
}
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue