Skip to content

Commit

Permalink
fix featured filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
PxlSyl authored and PxlSyl committed Apr 27, 2024
1 parent 4bb53fa commit 500b02c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/[locale]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default async function Page({ params: { locale } }: HomeProps) {
const sortedPosts = sortPosts(allBlogs)
const posts = allCoreContent(sortedPosts)
return <>
{posts.some(post => post.featured) && <Featured posts={posts} params={{ locale }} />}
{posts.filter(post => post.language === locale).some(post => post.featured) && <Featured posts={posts} params={{ locale }} />}
<Main posts={posts} params={{ locale: locale }} />
</>
}

0 comments on commit 500b02c

Please sign in to comment.