diff options
Diffstat (limited to 'src/pages/feed.xml.js')
-rw-r--r-- | src/pages/feed.xml.js | 4 |
1 files changed, 3 insertions, 1 deletions
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: `<language>ru-ru</language>`, |