You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
407 B
18 lines
407 B
import { defineContentConfig, defineCollection, z } from '@nuxt/content' |
|
|
|
// Lookup resolved from path: rootDir/content |
|
// see: https://github.com/nuxt/content/issues/3161 |
|
|
|
export default defineContentConfig({ |
|
collections: { |
|
content: defineCollection({ |
|
type: "page", |
|
source: "**/*.md", |
|
schema: z.object({ |
|
date: z.date(), |
|
img: z.string(), |
|
tags: z.array(z.string()), |
|
}) |
|
}) |
|
} |
|
});
|
|
|