{{ define "main" }}
{{ $headless := site.GetPage "/" }} {{ $widthOriginal := 1920 }} {{ $heightOriginal := 850 }} {{ $width := 1208 }} {{ $height := 534 }} {{ $image := default ($headless.Resources.GetMatch "**.jpg") (.Resources.GetMatch (default "**.jpg" .Params.image)) }} {{ if $image }} {{ if and (ge $image.Width $widthOriginal) (ge $image.Height $heightOriginal) }} {{ $image = $image.Process (printf "fill %dx%d Center webp" $width $height) }} {{ else if gt $image.Height $height }} {{ $image = $image.Process (printf "resize x%d webp" $height) }} {{ else }} {{ $image = $image.Process "webp" }} {{ end }} {{ or .Params.image_ .Params.image_credit }} {{ end }}

{{ .RenderString .Title }}

Publié le {{ if or (isset .Params "auteur") (isset .Params "authors") }} - {{ if isset .Params "authors" -}} {{ range $key, $value := .Params.authors }} {{ with site.GetPage $value }} {{ if gt $key 0 }} & {{ end }} {{ .Title }} {{ end }} {{ end }} {{- end }}{{ if isset .Params "auteur" }}{{ if isset .Params "authors" -}} & {{ end }}{{ .Params.auteur }}{{ end }}{{ end }} {{ .Content }}
{{ end }}