diff options
| author | BigCoke233 <hi@guhub.cn> | 2026-02-02 22:45:03 +0800 |
|---|---|---|
| committer | BigCoke233 <hi@guhub.cn> | 2026-02-02 22:45:03 +0800 |
| commit | b1cff7c1ef840780414f8bdeef600acef47b80b4 (patch) | |
| tree | a52587b0b6f20a42a6db83d49f696d5e423e78c1 /layouts/_shortcodes | |
| parent | 541a98ba58562c6af2aeb31f218a26a3987b6e57 (diff) | |
fix(accessibility): missing alt text in music shortcode
Diffstat (limited to 'layouts/_shortcodes')
| -rw-r--r-- | layouts/_shortcodes/music.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/_shortcodes/music.html b/layouts/_shortcodes/music.html index 7967b4ff..86566adf 100644 --- a/layouts/_shortcodes/music.html +++ b/layouts/_shortcodes/music.html @@ -2,6 +2,7 @@ <!-- Cover, title, artist --> <div class="flex gap-5 items-center"> <img class="w-15 h-15 rounded-lg shadow-lg m-0!" + alt="{{ .Get "title" }} music cover" src="{{ .Get "cover" }}" loading="lazy" /> <div> <h4 class="m-0 text-size-base">{{ .Get "title" }}</h4> @@ -17,6 +18,7 @@ class="{{ $aTagClasses }}" target="_blank" title="在 Apple Music 中打开" + alt="Apple Music" data-tooltip > <img src="/img/apple-music.png" loading="lazy" class="{{ $imageClasses }}" /> @@ -29,6 +31,7 @@ class="{{ $aTagClasses }}" target="_blank" title="在网易云音乐中打开" + alt="Netease Cloud Music" data-tooltip > <img src="/img/netease-music.png" loading="lazy" class="{{ $imageClasses }}" /> @@ -41,6 +44,7 @@ class="{{ $aTagClasses }}" target="_blank" title="在 Spotify 中打开" + alt="Spotify" data-tooltip > <img src="/img/spotify.png" loading="lazy" class="{{ $imageClasses }}" /> |
