mirror of
https://github.com/valentineus/popov.link.git
synced 2025-10-15 06:00:24 +03:00
Initial Astro project
This commit is contained in:
13
src/content/config.ts
Normal file
13
src/content/config.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { defineCollection, z } from "astro:content";
|
||||
|
||||
const blog = defineCollection({
|
||||
type: "content",
|
||||
schema: z.object({
|
||||
author: z.string(),
|
||||
description: z.string(),
|
||||
pubDate: z.coerce.date(),
|
||||
title: z.string(),
|
||||
}),
|
||||
});
|
||||
|
||||
export const collections = { blog };
|
Reference in New Issue
Block a user