diff options
author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2022-07-17 08:28:40 +0300 |
---|---|---|
committer | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2022-07-17 09:14:33 +0300 |
commit | 87ffee9fcf6dc3255b5d7346122ba32606430dcf (patch) | |
tree | c6fb5436f7d592932b386d1a86153fc3d0634698 | |
parent | bb6d4647bdf5716bfa6ccf5f91ef87d5297da758 (diff) |
Remove alt for label.icon
considering "iconic images that are redundant with text next to them or purely decorative should have alt="" instead."
from https://validator.w3.org/
-rw-r--r-- | layouts/partials/header.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 63cf652c..1e29e75a 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -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 -}} |