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