From 17ece5a34b541fd6596b9e103acaf3360dea5876 Mon Sep 17 00:00:00 2001 From: lew Date: Thu, 29 Jan 2026 01:31:12 +0000 Subject: [PATCH] feat: filter draft posts from public /md/ index --- apps/www/src/pages/md/index.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/www/src/pages/md/index.astro b/apps/www/src/pages/md/index.astro index f918c9d..210a4a1 100644 --- a/apps/www/src/pages/md/index.astro +++ b/apps/www/src/pages/md/index.astro @@ -2,7 +2,7 @@ import { getCollection } from 'astro:content'; import Layout from '../../layouts/Layout.astro'; -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) => {