image center actions culturelles

This commit is contained in:
Carmen Ngaka Iziasuma 2024-01-09 15:58:04 +01:00
parent 92cc76a1fe
commit 8ef973aaf8

View File

@ -30,8 +30,8 @@
{{ with $img }}
{{- $jpeg := .Resize (printf "%dx%d jpeg" .Width .Height) }}
{{- $webp := .Resize (printf "%dx%d webp picture" .Width .Height) }}
<figure class="image is-flex" style="max-width: 100%; max-height: 40vh; width: auto;">
<picture>
<figure class="image" style="max-width: 100%; max-height: 40vh; width: auto;">
<picture class=" is-flex is-justify-content-center is-align-items-center">
<source srcset="{{ $webp.Permalink }}" type="image/webp">
<img src='{{ $jpeg.Permalink }}' loading="lazy" width="{{ .Width }}" height="{{ .Height }}" alt="{{ .Permalink }}" style="max-width: 100%; max-height: 100%; width: auto;">
</picture>