mirror of
https://github.com/YouHaveTrouble/youhavetrouble.github.io.git
synced 2026-05-12 06:16:55 +00:00
use collections and provide rss feed for the blog
This commit is contained in:
@@ -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,
|
||||
};
|
||||
Reference in New Issue
Block a user