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. +
+ )}