All checks were successful
Build and Deploy Nuxt / build (push) Successful in 1m7s
39 lines
861 B
TypeScript
39 lines
861 B
TypeScript
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()
|
|
})
|
|
})
|
|
}
|
|
}) |