This commit is contained in:
@@ -3,9 +3,9 @@ import { z } from 'zod'
|
||||
|
||||
export default defineContentConfig({
|
||||
collections: {
|
||||
blog_en: defineCollection({
|
||||
blog: defineCollection({
|
||||
type: 'page',
|
||||
source: 'blog/en/*.md',
|
||||
source: 'blog/**/**.md',
|
||||
schema: z.object({
|
||||
title: z.string(),
|
||||
slug: z.string(),
|
||||
@@ -14,26 +14,9 @@ export default defineContentConfig({
|
||||
})
|
||||
}),
|
||||
|
||||
blog_es: defineCollection({
|
||||
fixed: defineCollection({
|
||||
type: 'page',
|
||||
source: 'blog/en/*.md',
|
||||
schema: z.object({
|
||||
title: z.string(),
|
||||
slug: z.string(),
|
||||
date: z.string(),
|
||||
description: z.string()
|
||||
})
|
||||
source: 'fixed/**/**.md'
|
||||
}),
|
||||
|
||||
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