Adding alt to image badges.

This commit is contained in:
Adsooi 2021-08-13 00:20:34 +02:00
parent ebd1e63256
commit acfeaa62b8
Signed by: Ad5001
GPG key ID: 7251B1AF90B960F9

View file

@ -9,7 +9,7 @@
{{ partial "badge.html" (dict "Icon" $icon "Lang" . "Alt" $alt ) }} {{ partial "badge.html" (dict "Icon" $icon "Lang" . "Alt" $alt ) }}
<br> <br>
<div class="center fit-content"> <div class="center fit-content">
<div class="code">&lt;img source="https://ad5001.eu/img/badges/{{ . }}/{{ $icon }}.svg" class="badge"/&gt;</div> <div class="code">&lt;img source="https://ad5001.eu/img/badges/{{ . }}/{{ $icon }}.svg" alt="{{ i18n $alt }}" class="badge"/&gt;</div>
</div> </div>
</div> </div>
{{ end }} {{ end }}