From b62e565d386f2e4d3da32361908ace61c1cfddaa Mon Sep 17 00:00:00 2001 From: lew Date: Thu, 29 Jan 2026 01:54:04 +0000 Subject: [PATCH] fix: filter draft posts from homepage index --- apps/www/src/pages/index.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/www/src/pages/index.astro b/apps/www/src/pages/index.astro index 600a755..068aeb6 100644 --- a/apps/www/src/pages/index.astro +++ b/apps/www/src/pages/index.astro @@ -24,7 +24,7 @@ interface TxtConfig { pinned?: string[]; } -const posts = await getCollection('posts'); +const posts = await getCollection('posts', ({ data }) => data.draft !== true); // Group by category (default: "posts") const grouped = posts.reduce((acc, post) => {