From 29b3c89c40d76b8b002ed8f221214e787ff86ef7 Mon Sep 17 00:00:00 2001 From: passthem Date: Sun, 5 Apr 2026 19:21:21 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E5=9B=BE=E7=89=87=20densitie?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/BlogCard.astro | 2 ++ src/pages/blogs.astro | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/BlogCard.astro b/src/components/BlogCard.astro index eac2f96..0a161be 100644 --- a/src/components/BlogCard.astro +++ b/src/components/BlogCard.astro @@ -28,6 +28,7 @@ const formatDate = (date: Date) => `${date.getFullYear()} 年 ${date.getMonth() src={featureImage} width={640} height={360} + densities={[1.5, 2]} alt="博文的头图" /> ) @@ -41,6 +42,7 @@ const formatDate = (date: Date) => `${date.getFullYear()} 年 ${date.getMonth() alt=`用户 ${author.name} 的头像` width={24} height={24} + densities={[1.5, 2]} /> {author.name} } diff --git a/src/pages/blogs.astro b/src/pages/blogs.astro index 0159b85..27eb232 100644 --- a/src/pages/blogs.astro +++ b/src/pages/blogs.astro @@ -23,8 +23,9 @@ const blogs = await listBlogs({ page, limit: 100 }) class="image" src={BlogHeaderImage} alt="博客列表的头图,一个悬挂在空中的 LCD1602,上面写着一些示例文本" - width={1280} - height={720} + width={960} + height={540} + densities={[1.5, 2]} />

博客列表