Pumpkin-Blog/content.config.ts
2026-02-06 12:34:55 -07:00

20 lines
523 B
TypeScript

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