From 2b5302587645dcab7c012c550989b7a8e9bee72b Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 2 Oct 2024 23:04:27 +0000 Subject: Update blog post metadata and styles --- src/pages/feed.xml.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/pages/feed.xml.js') diff --git a/src/pages/feed.xml.js b/src/pages/feed.xml.js index c837202..d71a020 100644 --- a/src/pages/feed.xml.js +++ b/src/pages/feed.xml.js @@ -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: `ru-ru`, -- cgit v1.2.3