From d637c8b22fc6787ec57d443edf6002e249319154 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Sat, 3 Jan 2026 20:56:37 +0800 Subject: [PATCH] fix(img): remove lazy loading background style from img Transparent images cannot cover loading images --- assets/css/_partials/_img.scss | 4 ---- layouts/_partials/init/index.html | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/assets/css/_partials/_img.scss b/assets/css/_partials/_img.scss index 550ca750..cd3b3edb 100644 --- a/assets/css/_partials/_img.scss +++ b/assets/css/_partials/_img.scss @@ -1,7 +1,3 @@ img { @include border-radius($global-border-radius/2); - - &[loading='lazy'] { - background: var(#{$rootPrefix}loading-img) no-repeat center; - } } diff --git a/layouts/_partials/init/index.html b/layouts/_partials/init/index.html index 1ce6891a..27ee6d1e 100644 --- a/layouts/_partials/init/index.html +++ b/layouts/_partials/init/index.html @@ -1,4 +1,4 @@ -{{- hugo.Store.Set "version" "v0.4.0-rc" -}} +{{- hugo.Store.Set "version" "v0.4.0-rc-20260103125638-00870fda" -}} {{- .Store.Set "this" dict -}} {{- partial "init/detection-env.html" . -}}