mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-17 03:56:19 +02:00
feat: add RSS feed generation and content management features
This commit is contained in:
parent
9a7b0c42e1
commit
4d989e0a7d
7 changed files with 115 additions and 1 deletions
18
src/content/config.ts
Normal file
18
src/content/config.ts
Normal file
|
@ -0,0 +1,18 @@
|
|||
import { defineCollection, z } from 'astro:content'
|
||||
|
||||
const postsCollection = defineCollection({
|
||||
schema: z.object({
|
||||
title: z.string(),
|
||||
published: z.date(),
|
||||
updated: z.date().optional(),
|
||||
draft: z.boolean().optional().default(false),
|
||||
description: z.string().optional().default(''),
|
||||
tags: z.array(z.string()).optional().default([]),
|
||||
lang: z.string().optional().default(''),
|
||||
slug: z.string().optional().default(''),
|
||||
pin: z.boolean().optional().default(false),
|
||||
}),
|
||||
})
|
||||
export const collections = {
|
||||
posts: postsCollection,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue