From adee10d5229c6cb156095de416820aa5082ae4aa Mon Sep 17 00:00:00 2001 From: Dagmawi Babi <44819176+dagmawibabi@users.noreply.github.com> Date: Sun, 20 Jul 2025 03:39:17 +0300 Subject: [PATCH] docs: better blog preview (#3489) --- docs/app/blog/_components/blog-list.tsx | 76 ++++++++++++++----------- 1 file changed, 44 insertions(+), 32 deletions(-) diff --git a/docs/app/blog/_components/blog-list.tsx b/docs/app/blog/_components/blog-list.tsx index 94507db3..1aeb6ebb 100644 --- a/docs/app/blog/_components/blog-list.tsx +++ b/docs/app/blog/_components/blog-list.tsx @@ -6,6 +6,7 @@ import { GitHubIcon, BookIcon, XIcon } from "./icons"; import { Glow } from "./default-changelog"; import { StarField } from "./stat-field"; import { DiscordLogoIcon } from "@radix-ui/react-icons"; +import Image from "next/image"; export async function BlogPage() { const posts = blogs.getPages(); @@ -54,47 +55,58 @@ export async function BlogPage() {

-
+
{posts.map((post) => ( -
-
- {/* {post.data?.image && ( +
+
+
+
+

+ {formatBlogDate(post.data.date)} +

+

{post.data?.title}

+
+
+ {post.data?.image && ( {post.data.title} - )} */} -
-

- {formatBlogDate(post.data.date)} -

-

{post.data?.title}

-

- {post.data?.description.substring(0, 100)}... -

+ )} +
+
+

+ {post.data?.description.substring(0, 100)}... +

+
-
-

- {post.data.structuredData.contents[0].content.substring(0, 250)} - ... -

- -

Read More

- - - View Article - -
+

+ {post.data.structuredData.contents[0].content.substring( + 0, + 250, + )} + ... +

+ +

+ Read More +

+ + + View Article + +
+
))}