Préserver les GIF animés lors des transformations d'images
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user