initial environment setup

This commit is contained in:
radishzzz 2025-01-13 02:50:27 +00:00
commit 9d2be2a82e
15 changed files with 13276 additions and 0 deletions

16
src/content/config.ts Normal file
View file

@ -0,0 +1,16 @@
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,
}