Correction des miniatures des fichiers complémentaires
This commit is contained in:
@@ -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 }}">
|
||||
|
||||
Reference in New Issue
Block a user