From ad80d1db25ab8d1675bea5b99b9909bb5904728f Mon Sep 17 00:00:00 2001
From: "Builder.io"
Date: Sat, 4 Oct 2025 10:59:45 +0000
Subject: [PATCH] Update recent posts grid to use derived posts and slugs
cgen-87b23973dca5402ab55c6aa4846d22f2
---
client/pages/Blog.tsx | 150 ++++++++++++++++++++++--------------------
1 file changed, 80 insertions(+), 70 deletions(-)
diff --git a/client/pages/Blog.tsx b/client/pages/Blog.tsx
index 5eb8cb4e..bebfd690 100644
--- a/client/pages/Blog.tsx
+++ b/client/pages/Blog.tsx
@@ -450,82 +450,92 @@ export default function Blog() {
-
- {filteredPosts.map((post, index) => (
-
-
-
-
- {post.category}
-
- {post.trending && (
-
-
- Trending
+ {displayedPosts.length > 0 ? (
+
+ {displayedPosts.map((post, index) => (
+
+
+
+
+ {post.category || "General"}
- )}
-
-
- {post.title}
-
-
- {post.excerpt}
-
-
-
-
-
-
-
- {post.author}
+ {post.trending && (
+
+
+ Trending
+
+ )}
-
-
- {post.date}
-
-
+
+ {post.title}
+
+
+ {post.excerpt}
+
+
-
-
- {post.readTime}
-
-
-
-
-
-
-
-
-
-
-
-
{post.likes}
+
+
+
+
+ {post.author || "AeThex Team"}
-
-
-
{post.comments}
+
+
+ {post.date || "Coming soon"}
-
-
-
-
- ))}
-
+
+
+ {post.readTime ? (
+
+ {post.readTime}
+
+ ) : (
+
+ Quick read
+
+ )}
+
+
+
+
+
+
+
+
+
+
+ {post.likes ?? 0}
+
+
+
+ {post.comments ?? 0}
+
+
+
+
+
+
+ ))}
+
+ ) : (
+
+ No articles available in this category yet. Please check back soon.
+
+ )}