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) => {