0
mirror of https://github.com/valentineus/popov.link.git synced 2025-10-15 06:00:24 +03:00
Files
popov.link/src/content/config.ts

15 lines
303 B
TypeScript
Raw Normal View History

2024-09-04 21:16:37 +00:00
import { defineCollection, z } from "astro:content";
const blog = defineCollection({
type: "content",
schema: z.object({
author: z.string(),
description: z.string(),
2024-10-02 23:04:27 +00:00
draft: z.optional(z.boolean()),
2024-09-04 21:16:37 +00:00
pubDate: z.coerce.date(),
title: z.string(),
}),
});
export const collections = { blog };