{{ $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 isset .Params "auteur" }} - {{ .Params.auteur }}{{ end }} {{ if $isBig }}

{{ $title }}

{{else}}

{{ $title }}

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