fix: drafted posts show in /authors/[...id]
(#14)
This commit is contained in:
parent
f51601c21a
commit
26add8b39d
1 changed files with 1 additions and 1 deletions
|
@ -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>
|
||||||
|
|
Loading…
Add table
Reference in a new issue