mirror of
https://github.com/andwati/personal-website.git
synced 2026-10-18 02:32:54 +00:00
20 lines
397 B
TypeScript
20 lines
397 B
TypeScript
import { defineContentConfig, defineCollection, z } from "@nuxt/content";
|
|
|
|
export default defineContentConfig({
|
|
collections: {
|
|
content: defineCollection({
|
|
type: "page",
|
|
source: "**",
|
|
}),
|
|
blog: defineCollection({
|
|
type: "page",
|
|
source: "blog/**",
|
|
schema: z.object({
|
|
date: z.string(),
|
|
image: z.string().optional(),
|
|
badge: z.string().optional(),
|
|
}),
|
|
}),
|
|
},
|
|
});
|