This commit is contained in:
39
frontend/content.config.ts
Normal file
39
frontend/content.config.ts
Normal file
@@ -0,0 +1,39 @@
|
||||
import { defineContentConfig, defineCollection } from '@nuxt/content'
|
||||
import { z } from 'zod'
|
||||
|
||||
export default defineContentConfig({
|
||||
collections: {
|
||||
blog_en: defineCollection({
|
||||
type: 'page',
|
||||
source: 'blog/en/*.md',
|
||||
schema: z.object({
|
||||
title: z.string(),
|
||||
slug: z.string(),
|
||||
date: z.string(),
|
||||
description: z.string()
|
||||
})
|
||||
}),
|
||||
|
||||
blog_es: defineCollection({
|
||||
type: 'page',
|
||||
source: 'blog/en/*.md',
|
||||
schema: z.object({
|
||||
title: z.string(),
|
||||
slug: z.string(),
|
||||
date: z.string(),
|
||||
description: z.string()
|
||||
})
|
||||
}),
|
||||
|
||||
blog_ca: defineCollection({
|
||||
type: 'page',
|
||||
source: 'blog/en/*.md',
|
||||
schema: z.object({
|
||||
title: z.string(),
|
||||
slug: z.string(),
|
||||
date: z.string(),
|
||||
description: z.string()
|
||||
})
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user