feat: Convertion des jpg en webp

This commit is contained in:
2021-05-03 14:57:56 +02:00
parent 9619c20b9b
commit 17a13a4430
4 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@
<div class="container conseilmunicipal">
{{ range sort $.Site.Data.conseilmunicipal.conseilmunicipal "nom" }}
{{ $image := $headless.Resources.GetMatch .image }}
{{ $resized := $image.Resize "250x" }}
{{ $resized := $image.Resize "250x webp" }}
{{ partial "person.html" (merge . (dict "image" $resized.RelPermalink)) }}
{{ end }}
</div>