1

Optimisation des images++

This commit is contained in:
2026-03-06 00:16:17 +01:00
parent 3b3733cb96
commit 84af2115be
7 changed files with 11 additions and 9 deletions

View File

@@ -4,7 +4,7 @@
{{- $assetPath := "images/oeuvres/l-humain-cette-espece-primitive.jpeg" -}}
{{- $source := resources.Get $assetPath -}}
{{- if $source -}}
{{- $img := $source.Resize "320x" -}}
{{- $img := $source.Resize "320x webp q80" -}}
<img src="{{ $img.RelPermalink }}" width="{{ $img.Width }}" height="{{ $img.Height }}" alt="Couverture de L'Humain, cette espèce primitive" loading="lazy">
{{- end -}}
</figure>