16 lines
363 B
TypeScript
16 lines
363 B
TypeScript
|
// 1. Import utilities from `astro:content`
|
||
|
import { z, defineCollection } from "astro:content";
|
||
|
// 2. Define your collection(s)
|
||
|
const teknikCollection = defineCollection({
|
||
|
type: "content",
|
||
|
schema: z.object({
|
||
|
title: z.string(),
|
||
|
summary: z.string(),
|
||
|
tags: z.array(z.string()),
|
||
|
}),
|
||
|
});
|
||
|
|
||
|
export const collections = {
|
||
|
teknik: teknikCollection,
|
||
|
};
|