1

Optimisation des images++

This commit is contained in:
2026-03-06 00:16:17 +01:00
parent 1a341d428e
commit d7064aacbb
7 changed files with 11 additions and 9 deletions

View File

@@ -305,7 +305,7 @@
<a href="{{ $page.RelPermalink }}">
<figure>
{{- with $image -}}
{{- $resized := .Fill "166x91" -}}
{{- $resized := .Fill "166x91 webp q80" -}}
<img src="{{ $resized.RelPermalink }}" alt="Capture du lien {{ $page.Title }}" loading="lazy">
{{- end -}}
</figure>
@@ -391,7 +391,7 @@
<a href="{{ $item.RelPermalink }}" title="{{ $item.Title }}">
<figure>
{{- with $itemImage -}}
{{- $resized := .Resize "x128" -}}
{{- $resized := .Resize "x128 webp q80" -}}
<img src="{{ $resized.RelPermalink }}" alt="{{ $item.Title }}" title="{{ $item.Title }}" loading="lazy">
{{- end -}}
</figure>