1

Optimisation des images++

This commit is contained in:
2026-03-06 00:16:17 +01:00
parent 1a341d428e
commit d7064aacbb
7 changed files with 11 additions and 9 deletions

View File

@@ -100,7 +100,7 @@
{{- $title := default (printf "Image complémentaire : %s" $imageName) (index $data "title") -}}
{{- $thumbnail := . -}}
{{- if and (ne .MediaType.SubType "svg") (gt .Width 360) -}}
{{- $thumbnail = .Resize "360x" -}}
{{- $thumbnail = .Resize "360x webp q80" -}}
{{- end -}}
<li>
<a href="{{ .RelPermalink }}" title="{{ $title }}">