{{ $isBig := default false (.Scratch.Get "big") }} {{ $title := .RenderString .Title }} {{ $titleWithoutHTML := $title | plainify }} {{ $pictureSize := cond $isBig "220x220 Center webp" "100x100 Center webp" }} {{ $truncateSize := cond $isBig 180 90}}
{{ $image := .Resources.GetMatch (default "**.jpg" .Params.image) }} {{ 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 }}