use collections and provide rss feed for the blog

This commit is contained in:
2024-07-22 19:37:18 +02:00
parent 0bca511144
commit 3cc883d082
13 changed files with 1876 additions and 1486 deletions
+14
View File
@@ -0,0 +1,14 @@
import { z, defineCollection } from 'astro:content';
const posts = defineCollection({
type: 'content',
schema: z.object({
title: z.string(),
description: z.string(),
publishDate: z.string(),
tags: z.array(z.string()),
image: z.string().optional(),
}),
});
export const collections = {
posts,
};