0
mirror of https://github.com/valentineus/popov.link.git synced 2025-07-04 16:40:26 +03:00

Update blog post metadata and styles

This commit is contained in:
2024-10-02 23:04:27 +00:00
parent d4eab1ff13
commit 2b53025876
6 changed files with 27 additions and 21 deletions

View File

@ -2,7 +2,9 @@ import { getCollection } from "astro:content";
import rss from "@astrojs/rss";
export async function GET(context) {
const posts = await getCollection("blog");
const posts = await getCollection("blog", ({ data }) => {
return data.draft !== true;
});
return rss({
customData: `<language>ru-ru</language>`,