{{ $item := .item }} {{ $widget := .widget }} {{ $do_link := true }} {{ if $item.Params.external_link | or $item.Content }} {{ $do_link = true }} {{ else }} {{ $do_link = false }} {{ end }} {{ $link := .link }} {{ $target := .target }} {{ $order := "" }} {{ if and ($widget.Params.design.flip_alt_rows | default true) (not (modBool .index 2)) }} {{ $order = "order-md-2" }} {{ end }} {{ $js_tag_classes := delimit (apply (apply $item.Params.tags "replace" "." " " "-") "printf" "js-id-%s" ".") " " }}

{{- if $do_link}}{{end -}}

{{ $summary := "" }} {{ if $item.Params.summary }} {{ $summary = $item.Params.summary }} {{ else if $item.Truncated }} {{ $summary = $item.Summary }} {{ end }} {{ with $summary }}
{{ . | markdownify | emojify }}
{{ end }}
{{ $resource := ($item.Resources.ByType "image").GetMatch "*featured*" }} {{ with $resource }} {{ $image := .Resize "540x" }} {{if $do_link}}{{end}} {{if $do_link}}{{end}} {{end}}