{{ $item := . }} {{/* Dynamic view adjusts to content type. */}} {{ $show_buttons := false }} {{ if eq $item.Type "event" }} {{ $show_buttons = true }} {{ else if eq $item.Type "publication" }} {{ $show_buttons = true }} {{ end }} {{/* Get summary. */}} {{ $summary := "" }} {{ if $item.Params.summary }} {{ $summary = $item.Params.summary | markdownify | emojify }} {{ else if .Params.abstract }} {{ $summary = .Params.abstract | markdownify | emojify }} {{ else if $item.Summary }} {{ $summary = $item.Summary }} {{ end }}
{{ if eq $item.Type "event" }}
{{ if $item.Params.authors }}
{{ partial "page_metadata_authors" $item }}
{{ end }} {{ partial "functions/get_event_dates" $item }} {{ with $item.Params.location }} {{ . }} {{ end }}
{{ else }} {{ partial "page_metadata" (dict "page" $item "is_list" 1) }} {{ end }} {{ $resource := ($item.Resources.ByType "image").GetMatch "*featured*" }} {{ $anchor := $item.Params.image.focal_point | default "Smart" }} {{ with $resource }} {{ $filters := slice (images.GaussianBlur 21) (images.Pixelate 8) }} {{ $image := .Fill (printf "808x455 %s" $anchor) }} {{ $image_lq := (.Fill (printf "808x455 %s q1" $anchor)).Filter $filters }}
{{ $item.Title }}
{{end}}

{{ $item.Title }}

{{ with $summary }}

{{.}}

{{ end }} {{ if $show_buttons }} {{ end }}