aboutsummaryrefslogtreecommitdiff
path: root/src/pages/feed.xml.js
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2024-10-03 02:04:27 +0300
committerValentin Popov <valentin@popov.link>2024-10-03 02:04:27 +0300
commit2b5302587645dcab7c012c550989b7a8e9bee72b (patch)
treed0de8fc07cb6d0ec1c81657dcc9f0880a97c4d8b /src/pages/feed.xml.js
parentd4eab1ff131c9342213f2dcc9b3c6383c7de41dd (diff)
downloadpopov.link-2b5302587645dcab7c012c550989b7a8e9bee72b.tar.xz
popov.link-2b5302587645dcab7c012c550989b7a8e9bee72b.zip
Update blog post metadata and styles
Diffstat (limited to 'src/pages/feed.xml.js')
-rw-r--r--src/pages/feed.xml.js4
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>`,