mirror of https://github.com/gabehf/mnrva.dev.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
351 B
15 lines
351 B
import { defineCollection, z } from "astro:content";
|
|
|
|
const postsCollection = defineCollection({
|
|
type: "content",
|
|
schema: z.object({
|
|
title: z.string(),
|
|
publishedAt: z.date(),
|
|
description: z.string(),
|
|
isPublish: z.boolean(),
|
|
isDraft: z.boolean().default(false),
|
|
}),
|
|
});
|
|
|
|
export const collections = { posts: postsCollection };
|