define carousel pictures sizes from webp resized version params

pull/11/head
Florian Roger 9 months ago
parent 627c22fd3f
commit b4eed16f43

@ -17,7 +17,7 @@
<source srcset="{{ $webp.Permalink }}" type="image/webp">
<img src='{{ $jpeg.Permalink }}'
{{ if ne $index 0 }} loading="lazy" {{ end }}
width="{{ $image.Width }}" height="{{ $image.Height }}" alt="{{ $image.Permalink }}">
width="{{ $webp.Width }}" height="{{ $webp.Height }}" alt="{{ $image.Permalink }}">
</picture>
</figure>
{{ end }}

Loading…
Cancel
Save