{{ $item := .item }} {{ $widget := .page }} {{ $index := .index }} {{ $do_link := true }} {{ if $item.Params.external_link | or $item.Content }} {{ $do_link = true }} {{ else }} {{ $do_link = false }} {{ end }} {{ $link := $item.Params.external_link | default $item.RelPermalink }} {{ $target := .target }} {{/* Get summary. */}} {{ $summary := "" }} {{ if $item.Params.summary }} {{ $summary = $item.Params.summary | markdownify | emojify }} {{ else if $item.Params.abstract }} {{ $summary = $item.Params.abstract | markdownify | emojify }} {{ else if $item.Summary }} {{ $summary = $item.Summary }} {{ end }} {{ $order := "" }} {{ if isset $widget "Params" }} {{ if and ($widget.Params.design.flip_alt_rows | default true) (not (modBool $index 2)) }} {{ $order = "order-md-2" }} {{ end }} {{ else if and ($widget.design.flip_alt_rows | default true) (not (modBool $index 2)) }} {{ $order = "order-md-2" }} {{ end }}
{{- if $do_link}}{{end -}} {{ $item.Title | markdownify | emojify }} {{- if $do_link}}{{end -}}
{{ with $summary }}
{{ . }}
{{ end }}
{{ $resource := partial "blox-core/functions/get_featured_image.html" $item }} {{ with $resource }} {{/* Use CSS to expand images to consistent widths rather than just Hugo as Hugo can significantly increase the filesize of GIFs when processing them, e.g. 400kB --> 1.5MB */}} {{ $image := . }} {{ if ne $image.MediaType.SubType "gif" }}{{ $image = $image.Process "resize 540x webp" }}{{ end }} {{if $do_link}}{{end}} {{ $item.Title }} {{if $do_link}}{{end}} {{end}}