summaryrefslogtreecommitdiff
path: root/layouts/_partials
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-09-10 19:56:29 +0800
committerEltrac <hi@guhub.cn>2025-09-10 19:56:29 +0800
commitb9febe139ef0338d807179b7ffa14af423f710ec (patch)
tree6f696fb270bd3da11f3cdaa43729ccdc18b9ab74 /layouts/_partials
parent28a640d769704ebbc0975e7acf4e6f7258d557ba (diff)
fix: images missing alternative texts
Former-commit-id: 1e4ca50749793b4178426418d9d34a74c59d8319
Diffstat (limited to 'layouts/_partials')
-rw-r--r--layouts/_partials/footer.html4
-rw-r--r--layouts/_partials/header.html2
-rw-r--r--layouts/_partials/home/home-nav.html2
3 files changed, 5 insertions, 3 deletions
diff --git a/layouts/_partials/footer.html b/layouts/_partials/footer.html
index 97e21d75..202e5ca4 100644
--- a/layouts/_partials/footer.html
+++ b/layouts/_partials/footer.html
@@ -31,7 +31,9 @@
{{ range .Site.Params.footerExternalLinks }}
<li class="inline-flex items-center">
<a href="{{ .link }}" title="{{ .name }}" target="_blank" data-tooltip>
- <img class="h-4 w-auto inline-block rounded-full grayscale dark:invert" src="{{ .icon }}" />
+ <img class="h-4 w-auto inline-block rounded-full grayscale dark:invert"
+ src="{{ .icon }}" alt="{{ .name }} icon."
+ />
</a>
</li>
{{ end }}
diff --git a/layouts/_partials/header.html b/layouts/_partials/header.html
index df3b6d5a..1081cf5c 100644
--- a/layouts/_partials/header.html
+++ b/layouts/_partials/header.html
@@ -42,7 +42,7 @@
{{- $entry := index $switch $lang -}}
<a href="{{ $entry.url }}" data-umami-event="🌍 Switch Language"
class="no-swup" title="{{ $entry.label }}">
- <img src="/img/globe.svg" class="dark:invert block w-[1.2em] h-[1.2em]">
+ <img src="/img/globe.svg" class="dark:invert block w-[1.2em] h-[1.2em]" alt="A globe.">
</a>
</div>
</header>
diff --git a/layouts/_partials/home/home-nav.html b/layouts/_partials/home/home-nav.html
index d3ae0e51..144f3e48 100644
--- a/layouts/_partials/home/home-nav.html
+++ b/layouts/_partials/home/home-nav.html
@@ -36,7 +36,7 @@
class="block opacity-50 transition-opacity duration-300 hover:opacity-100
{{ if eq "/stats/" $.Page.RelPermalink }} opacity-100 font-bolder{{ end }}"
data-umami-event="📈 Click stats page link">
- <img src="/img/graph.svg" class="opacity-50 h-8 w-8" />
+ <img src="/img/graph.svg" class="opacity-50 h-8 w-8" alt="Cthulu-style monster with an eye." />
</a>
<li>
</nav>