log101-dot-dev/src/content/config.ts

17 lines
373 B
TypeScript
Raw Normal View History

import { z, defineCollection } from "astro:content";
2024-05-06 19:36:07 +00:00
const blogCollection = defineCollection({
type: "content",
schema: z.object({
title: z.string(),
tags: z.array(z.string()),
2024-05-06 19:36:07 +00:00
summary: z.string(),
date: z.date(),
category: z.enum(["Kitap İncelemesi", "Teknik Yazı", "Öykü"]),
}),
});
export const collections = {
2024-05-06 19:36:07 +00:00
blog: blogCollection,
};