{{ $item := .item }} {{ $has_attachments := partial "functions/has_attachments" $item }} {{ $link := $item.RelPermalink }} {{ $target := "" }} {{ if $item.Params.external_link }} {{ $link = $item.Params.external_link }} {{ $target = "target=\"_blank\" rel=\"noopener\"" }} {{ end }} {{/* Get summary. */}} {{ $summary := "" }} {{ if $item.Params.summary }} {{ $summary = $item.Params.summary | markdownify | emojify }} {{ else if .Params.abstract }} {{ $summary = .Params.abstract | markdownify | emojify | truncate (site.Params.abstract_length | default 135) }} {{ else if $item.Summary }} {{ $summary = $item.Summary }} {{ end }} {{ $resource := ($item.Resources.ByType "image").GetMatch "*featured*" }}
{{ with $resource }} {{ $image := .Resize "550x webp" }} {{ $item.Title }} {{ end }}

{{ $item.Title | markdownify | emojify }}

{{ with $summary }}

{{ . }}

{{ end }} {{ if $has_attachments }} {{ end }}