|
|
@ -17,8 +17,13 @@
|
|
|
|
<div class="column is-four-fifths p-0 m-0 has-background-danger">
|
|
|
|
<div class="column is-four-fifths p-0 m-0 has-background-danger">
|
|
|
|
{{ $img := resources.GetMatch (print .File.Dir "/principal.*") }}
|
|
|
|
{{ $img := resources.GetMatch (print .File.Dir "/principal.*") }}
|
|
|
|
{{ with $img }}
|
|
|
|
{{ with $img }}
|
|
|
|
|
|
|
|
{{- $jpeg := .Resize (printf "%dx%d jpeg" .Width .Height) }}
|
|
|
|
|
|
|
|
{{- $webp := .Resize (printf "%dx%d webp picture" .Width .Height) }}
|
|
|
|
<figure class="image">
|
|
|
|
<figure class="image">
|
|
|
|
<img src="{{ .Permalink }}">
|
|
|
|
<picture>
|
|
|
|
|
|
|
|
<source srcset="{{ $webp.Permalink }}" type="image/webp">
|
|
|
|
|
|
|
|
<img src='{{ $jpeg.Permalink }}' loading="lazy" width="{{ .Width }}" height="{{ .Height }}" alt="{{ .Permalink }}">
|
|
|
|
|
|
|
|
</picture>
|
|
|
|
</figure>
|
|
|
|
</figure>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -83,8 +88,13 @@
|
|
|
|
<div class="column is-three-fifths p-0 m-0 has-background-danger is-hidden-mobile">
|
|
|
|
<div class="column is-three-fifths p-0 m-0 has-background-danger is-hidden-mobile">
|
|
|
|
{{ $img := resources.GetMatch ( print .File.Dir "/savoir.*") }}
|
|
|
|
{{ $img := resources.GetMatch ( print .File.Dir "/savoir.*") }}
|
|
|
|
{{ with $img }}
|
|
|
|
{{ with $img }}
|
|
|
|
|
|
|
|
{{- $jpeg := .Resize (printf "%dx%d jpeg" .Width .Height) }}
|
|
|
|
|
|
|
|
{{- $webp := .Resize (printf "%dx%d webp picture" .Width .Height) }}
|
|
|
|
<figure class="image">
|
|
|
|
<figure class="image">
|
|
|
|
<img src="{{ .Permalink }}">
|
|
|
|
<picture>
|
|
|
|
|
|
|
|
<source srcset="{{ $webp.Permalink }}" type="image/webp">
|
|
|
|
|
|
|
|
<img src='{{ $jpeg.Permalink }}' loading="lazy" width="{{ .Width }}" height="{{ .Height }}" alt="{{ .Permalink }}">
|
|
|
|
|
|
|
|
</picture>
|
|
|
|
</figure>
|
|
|
|
</figure>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -118,10 +128,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
{{ with $imgs }}
|
|
|
|
{{ with $imgs }}
|
|
|
|
{{ range $imgs }}
|
|
|
|
{{ range $imgs }}
|
|
|
|
{{ $img := .}}
|
|
|
|
{{- $jpeg := .Resize "600x jpeg" }}
|
|
|
|
|
|
|
|
{{- $webp := .Resize "600x webp picture" }}
|
|
|
|
<img src="{{ $img.Permalink }}" alt="{{ $img.Name }}">
|
|
|
|
<picture>
|
|
|
|
|
|
|
|
<source srcset="{{ $webp.Permalink }}" type="image/webp">
|
|
|
|
|
|
|
|
<img src='{{ $jpeg.Permalink }}' loading="lazy" width="{{ $webp.Width }}" height="{{ $webp.Height }}" alt="{{ .Name }}">
|
|
|
|
|
|
|
|
</picture>
|
|
|
|
{{ end}}
|
|
|
|
{{ end}}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|