From 794cc9d99cfaccd8b1b26a2a18aaa446ccf04e9f Mon Sep 17 00:00:00 2001 From: Mateusz Baginski Date: Sat, 2 Nov 2024 16:37:01 +0100 Subject: [PATCH] feat(frontend): better align of grid --- .../src/components/blog/recent-articles.astro | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/apps/frontend/src/components/blog/recent-articles.astro b/apps/frontend/src/components/blog/recent-articles.astro index 22e53688..6e705946 100644 --- a/apps/frontend/src/components/blog/recent-articles.astro +++ b/apps/frontend/src/components/blog/recent-articles.astro @@ -16,10 +16,18 @@ const articles = await getArticles({

Recent Articles

-
- {articles.map(article => ( - - ))} +
+ { + articles.length > 0 + ? articles.map(article => ) + :

No articles available.

+ }