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:
@ -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>`,
|
||||
|
Reference in New Issue
Block a user