Skip to content

Commit

Permalink
fix: remove more posts when only one post
Browse files Browse the repository at this point in the history
  • Loading branch information
Aerilym committed Oct 15, 2024
1 parent 33032cd commit ffdd217
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions apps/foundation/app/(Site)/blog/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,11 @@ export default async function BlogGridPage() {
<ReadMoreText />
</PostInfoBlock>
</Link>
<Typography variant="h2" className="mt-12">
{blogDictionary('morePosts')}
</Typography>
{rest?.length ? (
<Typography variant="h2" className="mt-12">
{blogDictionary('morePosts')}
</Typography>
) : null}
<div className="mt-4 grid grid-cols-1 gap-12 md:mt-8 md:grid-cols-3">
{rest.map((post, index) => (
<Link
Expand Down

0 comments on commit ffdd217

Please sign in to comment.