mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 21:02:09 +00:00
HTML fix: specify image height AND width in HTML
Previously, only one of the two was specified. Now Lighthouse wants both
This commit is contained in:
parent
2030e221d7
commit
8de296971f
2 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@
|
|||
type="image/svg+xml">
|
||||
{{ $merveilles_png_src := $merveilles_png | resources.Fingerprint "md5" -}}
|
||||
<img
|
||||
width="{{ $merveilles_png.Width }}"
|
||||
width="{{ $merveilles_png.Width }}" height="{{ $merveilles_png.Height }}"
|
||||
src="{{ $merveilles_png_src.RelPermalink }}" alt="Merevilles logo">
|
||||
</picture></a>
|
||||
{{ end }}
|
||||
|
|
|
@ -58,6 +58,6 @@
|
|||
srcset="{{ $light_png_src.RelPermalink }}"
|
||||
type="image/png">
|
||||
<img
|
||||
width="{{ $light_png.Width }}"
|
||||
width="{{ $light_png.Width }}" height="{{ $light_png.Height }}"
|
||||
src="{{ $light_png.RelPermalink }}" alt='{{ .Get "alt" }}'>
|
||||
</picture>
|
||||
|
|
Loading…
Reference in a new issue