fix: drafted posts show in /authors/[...id] (#14)

This commit is contained in:
1dexx1 2025-02-25 02:37:10 +02:00 committed by GitHub
parent f51601c21a
commit 26add8b39d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -48,7 +48,7 @@ const authorPosts = allPosts
{ {
authorPosts.length > 0 ? ( authorPosts.length > 0 ? (
<ul class="not-prose flex flex-col gap-4"> <ul class="not-prose flex flex-col gap-4">
{authorPosts.map((post) => ( {authorPosts.filter(post => !post.data.draft).map((post) => (
<li> <li>
<BlogCard entry={post} /> <BlogCard entry={post} />
</li> </li>