diff --git a/apps/www/src/pages/md/[slug].astro b/apps/www/src/pages/md/[slug].astro index 1b95763..1209de4 100644 --- a/apps/www/src/pages/md/[slug].astro +++ b/apps/www/src/pages/md/[slug].astro @@ -3,7 +3,7 @@ import { getCollection, render } from 'astro:content'; import Layout from '../../layouts/Layout.astro'; export async function getStaticPaths() { - const posts = await getCollection('posts'); + const posts = await getCollection('posts', ({ data }) => data.draft !== true); return posts.map(post => ({ params: { slug: post.id }, props: { post }