Préserver les GIF animés lors des transformations d'images
This commit is contained in:
@@ -6,7 +6,11 @@
|
||||
{{- $logo := resources.GetMatch $logoPath -}}
|
||||
<a href="{{ "/" | relURL }}" aria-label="Revenir à l'accueil">
|
||||
{{- with $logo -}}
|
||||
{{- $resized := .Resize "64x webp q80" -}}
|
||||
{{- $resized := partial "media/process-image.html" (dict
|
||||
"image" .
|
||||
"action" "Resize"
|
||||
"spec" "64x"
|
||||
) -}}
|
||||
<img src="{{ $resized.RelPermalink }}" alt="">
|
||||
{{- end -}}
|
||||
<strong>{{ $site.Title }}</strong>
|
||||
|
||||
Reference in New Issue
Block a user