chore: refine user configuration standards

This commit is contained in:
radishzzz 2025-01-13 08:32:09 +00:00
parent 57e69c6067
commit 5d327ff4f8
7 changed files with 13000 additions and 101 deletions

View file

@ -1,16 +0,0 @@
import { defineCollection, z } from 'astro:content'
const postsCollection = defineCollection({
type: 'content',
schema: z.object({
title: z.string(),
pubDate: z.date(),
updatedDate: z.date().optional(),
tags: z.array(z.string()).optional(),
draft: z.boolean().optional().default(false),
}),
})
export const collections = {
posts: postsCollection,
}