fix: img attribute

add loading/decoding/fetchpriority

remove alt for decorative images
This commit is contained in:
ZhenShuo Leo committed 2025-09-26 22:37:56 +08:00
1 parent e6968d877f
commit 9eebb5b2aa
8 files changed
+21 -10

No files matched your search

+4 -1
View File
@@ -61,7 +61,10 @@
<img
id="background-image"
src="{{ . }}"
alt="Background Image"
alt=""
loading="eager"
decoding="async"
fetchpriority="high"
class="absolute inset-0 w-full h-full object-cover">
<div
class="absolute inset-0 bg-gradient-to-t from-neutral dark:from-neutral-800 to-transparent mix-blend-normal"></div>