{{ $isBig := default false (.Scratch.Get "big") }} {{ $title := .RenderString .Title }} {{ $titleWithoutHTML := $title | plainify }} {{ $pictureSize := cond $isBig "528x528 Center webp" "100x100 Center webp" }} {{ $truncateSize := cond $isBig 180 90}}
{{ $imageName := or .Params.vignette .Params.image }} {{ $image := .Resources.GetMatch (default "**.jpg" $imageName) }} {{ if $image }} {{ $resized := $image.Fill $pictureSize}} {{ $titleWithoutHTML }} {{ end }}
{{ 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 }} {{ if $isBig }}

{{ $title }}

{{else}}

{{ $title }}

{{ end }}
{{ $ellipsis := print " " | safeHTML }} {{ (replace (.Content | plainify) "\n" " ") | htmlUnescape | truncate $truncateSize $ellipsis }}