From 27206a7a9bbe3a2f6d0c04b1740a81a3997d5023 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E5=8F=89=E6=A0=91=E6=A0=91?= Date: Mon, 19 Jan 2026 16:23:58 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=EF=BC=88=E6=80=A7=E8=83=BD?= =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=89=E4=BD=BF=E5=8F=8B=E9=93=BE=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=9C=A8=E6=A1=8C=E9=9D=A2=E7=AB=AFChromium=E7=B3=BB?= =?UTF-8?q?=E6=B5=8F=E8=A7=88=E5=99=A8=E4=B8=8D=E5=86=8D=E5=8D=A1=E6=88=90?= =?UTF-8?q?=E5=8F=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除所有图片加载时的进度条动画效果,简化DOM结构和CSS样式 默认使用深色主题,优化主题加载逻辑 清理未使用的代码和注释 --- src/components/misc/ImageWrapper.astro | 31 +------- src/components/widget/Profile.astro | 18 +---- src/layouts/Layout.astro | 101 ++++++------------------- src/pages/friends.astro | 22 +----- src/pages/posts/[...slug].astro | 64 +--------------- src/pages/sponsors.astro | 32 +------- 6 files changed, 33 insertions(+), 235 deletions(-) diff --git a/src/components/misc/ImageWrapper.astro b/src/components/misc/ImageWrapper.astro index 1278db3b7..825626eb7 100644 --- a/src/components/misc/ImageWrapper.astro +++ b/src/components/misc/ImageWrapper.astro @@ -47,40 +47,17 @@ const imageClass = "w-full h-full object-cover"; const imageStyle = `object-position: ${position}`; ---
- -
-
-
- - - {isLocal && img && {alt} + {isLocal && img && {alt} {!isLocal && ( imageFallbackConfig.enable && src.includes(imageFallbackConfig.originalDomain) ? - {alt : - {alt + {alt : + {alt )}
+ + diff --git a/src/pages/posts/[...slug].astro b/src/pages/posts/[...slug].astro index 037e28c60..a766e1105 100644 --- a/src/pages/posts/[...slug].astro +++ b/src/pages/posts/[...slug].astro @@ -262,56 +262,9 @@ const jsonLd = {