mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-27 14:12: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">
|
type="image/svg+xml">
|
||||||
{{ $merveilles_png_src := $merveilles_png | resources.Fingerprint "md5" -}}
|
{{ $merveilles_png_src := $merveilles_png | resources.Fingerprint "md5" -}}
|
||||||
<img
|
<img
|
||||||
width="{{ $merveilles_png.Width }}"
|
width="{{ $merveilles_png.Width }}" height="{{ $merveilles_png.Height }}"
|
||||||
src="{{ $merveilles_png_src.RelPermalink }}" alt="Merevilles logo">
|
src="{{ $merveilles_png_src.RelPermalink }}" alt="Merevilles logo">
|
||||||
</picture></a>
|
</picture></a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -58,6 +58,6 @@
|
||||||
srcset="{{ $light_png_src.RelPermalink }}"
|
srcset="{{ $light_png_src.RelPermalink }}"
|
||||||
type="image/png">
|
type="image/png">
|
||||||
<img
|
<img
|
||||||
width="{{ $light_png.Width }}"
|
width="{{ $light_png.Width }}" height="{{ $light_png.Height }}"
|
||||||
src="{{ $light_png.RelPermalink }}" alt='{{ .Get "alt" }}'>
|
src="{{ $light_png.RelPermalink }}" alt='{{ .Get "alt" }}'>
|
||||||
</picture>
|
</picture>
|
||||||
|
|
Loading…
Reference in a new issue