no sizes directive in index galery
This commit is contained in:
parent
8bd9230b7f
commit
eeb19f53a2
@ -16,14 +16,10 @@
|
||||
{{- $webpl := $image.Resize (printf "%dx webp q%d picture" 2200 75) }}
|
||||
<figure class="image">
|
||||
<picture>
|
||||
<source type="image/webp"
|
||||
srcset="{{ $jpegs.Permalink }} {{ $jpegs.Width }}w,{{ $jpegm.Permalink }} {{ $jpegm.Width }}w,{{ $jpegl.Permalink }} {{ $jpegl.Width }}w"
|
||||
sizes="(max-width: {{ $jpegs.Width }}px) {{ $jpegs.Width }}px, (max-width: {{ $jpegm.Width }}px) {{ $jpegm.Width }}px, {{ $jpegl.Width }}px"
|
||||
>
|
||||
<source type="image/webp" srcset="{{ $jpegs.Permalink }} {{ $jpegs.Width }}w,{{ $jpegm.Permalink }} {{ $jpegm.Width }}w,{{ $jpegl.Permalink }} {{ $jpegl.Width }}w">
|
||||
<img src='{{ $jpegl.Permalink }}'
|
||||
{{ if ne $index 0 }} loading="lazy" {{ end }}
|
||||
srcset="{{ $jpegs.Permalink }} {{ $jpegs.Width }}w,{{ $jpegm.Permalink }} {{ $jpegm.Width }}w,{{ $jpegl.Permalink }} {{ $jpegl.Width }}w"
|
||||
sizes="(max-width: {{ $jpegs.Width }}px) {{ $jpegs.Width }}px, (max-width: {{ $jpegm.Width }}px) {{ $jpegm.Width }}px, {{ $jpegl.Width }}px"
|
||||
alt="{{ $image.Permalink }}">
|
||||
</picture>
|
||||
</figure>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user