{{ $isBig := default false (.Scratch.Get "big") }} {{ $title := .RenderString .Title }} {{ $titleWithoutHTML := $title | plainify }} {{ $pictureSize := cond $isBig "220x220 Center" "100x100 Center" }} {{ $truncateSize := cond $isBig 180 90}}
{{ $image := .Resources.GetMatch (default "*" .Params.image) }} {{ if $image }} {{ $resized := $image.Fill $pictureSize}} {{ $titleWithoutHTML }} {{ end }}
{{ if $isBig }}

{{ $title }}

{{else}}

{{ $title }}

{{ end }}
{{ $ellipsis := print " " | safeHTML }} {{ .Content | plainify | htmlUnescape | truncate $truncateSize $ellipsis }}