1

Correction des miniatures des fichiers complémentaires

This commit is contained in:
2026-04-05 15:40:19 +02:00
parent 16f6ff556e
commit f58b77ae9c
2 changed files with 6 additions and 9 deletions

View File

@@ -105,12 +105,8 @@
{{- end -}}
{{- $title := default (printf "Image complémentaire : %s" $imageName) (index $data "title") -}}
{{- $thumbnail := . -}}
{{- if and (ne .MediaType.SubType "svg") (gt .Width 360) -}}
{{- $thumbnail = partial "media/process-image.html" (dict
"image" .
"action" "Resize"
"spec" "360x"
) -}}
{{- if and (ne .MediaType.SubType "svg") (or (gt .Width 360) (gt .Height 270)) -}}
{{- $thumbnail = .Fit "360x270 webp q80" -}}
{{- end -}}
<li>
<a href="{{ .RelPermalink }}" title="{{ $title }}">