1

Préserver les GIF animés lors des transformations d'images

This commit is contained in:
2026-03-06 22:54:15 +01:00
parent d16c29fc5d
commit 3ec52dfc71
10 changed files with 90 additions and 14 deletions

View File

@@ -315,7 +315,11 @@
<a href="{{ $page.RelPermalink }}">
<figure>
{{- with $image -}}
{{- $resized := .Fill "166x91 webp q80" -}}
{{- $resized := partial "media/process-image.html" (dict
"image" .
"action" "Fill"
"spec" "166x91"
) -}}
<img src="{{ $resized.RelPermalink }}" alt="Capture du lien {{ $page.Title }}" loading="lazy">
{{- end -}}
</figure>
@@ -401,7 +405,11 @@
<a href="{{ $item.RelPermalink }}" title="{{ $item.Title }}">
<figure>
{{- with $itemImage -}}
{{- $resized := .Resize "x128 webp q80" -}}
{{- $resized := partial "media/process-image.html" (dict
"image" .
"action" "Resize"
"spec" "x128"
) -}}
<img src="{{ $resized.RelPermalink }}" alt="{{ $item.Title }}" title="{{ $item.Title }}" loading="lazy">
{{- end -}}
</figure>