import { defineContentConfig, defineCollection, z } from '@nuxt/content'
export default defineContentConfig({
collections: {
blogs: defineCollection({
type: 'data',
source: 'blogs/**/*.md',
schema: z.object({
date: z.string(),
title: z.string(),
description: z.string(),
})
}),
projects: defineCollection({
type: 'data',
source: 'projects/**/*.md',
schema: z.object({
date: z.string(),
title: z.string(),
description: z.string(),
})
})
}
})
import { defineContentConfig, defineCollection, z } from '@nuxt/content'
export default defineContentConfig({
collections: {
blogs: defineCollection({
type: 'data',
source: 'blogs/**/*.md',
schema: z.object({
date: z.string(),
title: z.string(),
description: z.string(),
})
}),
projects: defineCollection({
type: 'data',
source: 'projects/**/*.md',
schema: z.object({
date: z.string(),
title: z.string(),
description: z.string(),
})
})
}
})