Pumpkin-Blog/content.config.ts
2026-02-05 22:20:59 -07:00

23 lines
656 B
TypeScript

import { defineContentConfig, defineCollection, property } from "@nuxt/content";
import { z } from "zod";
export default defineContentConfig({
collections: {
blog: defineCollection({
type: "page",
source: "blog/*.md",
schema: z.object({
hero: property(z.object({})).inherit(
"app/components/TitleSection.vue",
),
date: z.date(),
author: z.object({
name: z.string(),
url: z.string().url(),
}),
title: z.string(),
}),
}),
},
});