log101-dot-dev/src/content/config.ts
log101 04d2147a34
All checks were successful
/ Build (push) Successful in 3m35s
feat: add opening announcement
2024-06-25 20:45:41 +03:00

20 lines
488 B
TypeScript

import { z, defineCollection } from "astro:content";
export const CATEGORIES = ["fikir", "teknik", "edebiyat", "ansiklopedi"];
const blogCollection = defineCollection({
type: "content",
schema: z.object({
title: z.string(),
tags: z.optional(z.array(z.string())),
summary: z.string(),
date: z.date(),
category: z.enum(["fikir", "teknik", "edebiyat", "ansiklopedi"]),
subcategory: z.string(),
}),
});
export const collections = {
blog: blogCollection,
};