This commit is contained in:
2025-11-21 12:26:58 +08:00
parent 7ea114d876
commit 081f072a39
19 changed files with 3641 additions and 101 deletions

17
src/content/config.ts Normal file
View File

@@ -0,0 +1,17 @@
import { defineCollection, z } from 'astro:content';
const postsCollection = defineCollection({
type: 'content',
schema: z.object({
title: z.string(),
date: z.date(),
summary: z.string(),
tags: z.array(z.string()).optional(),
cover: z.string().optional(),
author: z.string().optional(),
}),
});
export const collections = {
posts: postsCollection,
};