mirror of
https://github.com/PretendoNetwork/website.git
synced 2026-09-16 12:58:26 -05:00
22 lines
440 B
TypeScript
22 lines
440 B
TypeScript
import { defineContentConfig, defineCollection, z } from '@nuxt/content';
|
|
|
|
export default defineContentConfig({
|
|
collections: {
|
|
blog: defineCollection({
|
|
type: 'page',
|
|
source: 'blog/*.md',
|
|
schema: z.object({
|
|
author: z.string(),
|
|
author_image: z.string(),
|
|
date: z.string(),
|
|
caption: z.string(),
|
|
cover_image: z.string()
|
|
})
|
|
}),
|
|
terms: defineCollection({
|
|
type: 'page',
|
|
source: 'terms/*.md'
|
|
})
|
|
}
|
|
});
|