1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-12-24 01:42:10 +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:
Rohan Kumar 2021-03-01 21:26:57 -08:00
parent 2030e221d7
commit 8de296971f
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
2 changed files with 2 additions and 2 deletions

View file

@ -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 }}

View file

@ -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>