Skip to content

Commit

Permalink
Remove alt for label.icon
Browse files Browse the repository at this point in the history
considering "iconic images that are redundant with text next to them or purely decorative should have alt="" instead."
from https://validator.w3.org/
  • Loading branch information
adityatelange committed Jul 17, 2022
1 parent bb6d464 commit 87ffee9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@
{{- $img = $img.Resize "x30" }}
{{- end }}
{{- end }}
<img src="{{ $img.Permalink }}" alt="logo" aria-label="logo"
<img src="{{ $img.Permalink }}" alt="" aria-label="logo"
height="{{- site.Params.label.iconHeight | default "30" -}}">
{{- else }}
<img src="{{- site.Params.label.icon | absURL -}}" alt="logo" aria-label="logo"
<img src="{{- site.Params.label.icon | absURL -}}" alt="" aria-label="logo"
height="{{- site.Params.label.iconHeight | default "30" -}}">
{{- end -}}
{{- end -}}
Expand Down

0 comments on commit 87ffee9

Please sign in to comment.