{{ $item := .item }} {{/* Dynamic view adjusts to content type. */}} {{ $show_authors_only := false }}{{/* Show authors only or full metadata? */}} {{ $link := $item.RelPermalink }} {{ $target := "" }} {{ if $item.Params.external_link }} {{ $link = $item.Params.external_link }} {{ $target = "target=\"_blank\" rel=\"noopener\"" }} {{ end }} {{ if eq $item.Type "event" }} {{ $show_authors_only = true }} {{ else if eq $item.Type "publication" }} {{ $show_authors_only = true }} {{ else if eq $item.Type "project" }} {{ $show_authors_only = true }} {{ end }} {{ $has_attachments := partial "functions/has_attachments" . }} {{/* 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 }}
{{ $item.Title }}
{{ with $summary }}
{{.}}
{{ end }} {{ if $has_attachments }} {{ end }}
{{ $resource := ($item.Resources.ByType "image").GetMatch "*featured*" }} {{ with $resource }} {{ $image := .Resize "150x webp" }} {{ $item.Title }} {{end}}