fix: remove alt in decorative images

This commit is contained in:
ZhenShuo Leo
2025-11-24 08:20:15 +08:00
parent 1be60f89da
commit ec942b013a
7 changed files with 7 additions and 8 deletions
+1 -1
View File
@@ -69,7 +69,7 @@
<img
id="background-image"
src="{{ . }}"
alt="{{ $.Title }}"
role="presentation"
loading="eager"
decoding="async"
fetchpriority="high"
+1 -1
View File
@@ -53,7 +53,7 @@
<div class="overflow-hidden h-36 md:h-56 lg:h-72">
<img
src="{{ . }}"
alt="{{ with $.Params.featureimagealt }}{{ . }}{{ else }}{{ with $.Title }}Featured image for {{ . }}{{ else }}Featured image{{ end }}{{ end }}"
role="presentation"
loading="eager"
decoding="async"
fetchpriority="high"
@@ -87,7 +87,7 @@
<div class="overflow-hidden rounded-md h-36 md:h-56 lg:h-72 nozoom">
<img
src="{{ . }}"
alt="{{ $.Title }}"
role="presentation"
loading="eager"
decoding="async"
fetchpriority="high"
@@ -107,7 +107,6 @@
<img
id="background-image-main"
src="{{ . }}"
alt=""
role="presentation"
loading="eager"
decoding="async"