From ffdd217088b8dd28e8fcf9503600f009b9c5bd3d Mon Sep 17 00:00:00 2001 From: Ryan Miller Date: Tue, 15 Oct 2024 14:12:56 +1100 Subject: [PATCH] fix: remove more posts when only one post --- apps/foundation/app/(Site)/blog/page.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/foundation/app/(Site)/blog/page.tsx b/apps/foundation/app/(Site)/blog/page.tsx index 41ccab71..a7047d2f 100644 --- a/apps/foundation/app/(Site)/blog/page.tsx +++ b/apps/foundation/app/(Site)/blog/page.tsx @@ -53,9 +53,11 @@ export default async function BlogGridPage() { - - {blogDictionary('morePosts')} - + {rest?.length ? ( + + {blogDictionary('morePosts')} + + ) : null}
{rest.map((post, index) => (