Removing unit from img's height attribute for label.icon

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-height
This commit is contained in:
Aditya Telange 2022-03-25 19:48:54 +05:30
parent 375155061d
commit 496b846597
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77

View File

@ -47,7 +47,7 @@
<a href="{{ "" | absLangURL }}" accesskey="h" title="{{ $label_text }} (Alt + H)"> <a href="{{ "" | absLangURL }}" accesskey="h" title="{{ $label_text }} (Alt + H)">
{{- if .Site.Params.label.icon }} {{- if .Site.Params.label.icon }}
<img src="{{- .Site.Params.label.icon | absURL -}}" alt="logo" aria-label="logo" <img src="{{- .Site.Params.label.icon | absURL -}}" alt="logo" aria-label="logo"
height="{{- .Site.Params.label.iconHeight | default " 30px" -}}"> height="{{- .Site.Params.label.iconHeight | default "30" -}}">
{{- end -}} {{- end -}}
{{- $label_text -}} {{- $label_text -}}
</a> </a>