{{ $exhibition := .exhibition }} {{ $layout := .layout | default "list" }} {{ $heading_level := .heading_level }} {{ $with_more := .with_more }} {{ $options := .options }} {{ with $exhibition }} {{ $class := "exhibition" }} {{ if and .Params.image $options.image }} {{ $class = printf "%s exhibition--with-image" $class }} {{ end -}} {{ $dates := .Params.dates }}
{{ partial "exhibitions/partials/exhibition/heading.html" (dict "item" . "options" $options "level" $heading_level "itemprop" "name" )}} {{ if $options.dates }} {{ partial "exhibitions/partials/exhibition/schedule.html" (dict "dates" .Params.dates "on_two_lines" (ne $layout "list") )}} {{ end }} {{ if and $dates.status $options.status }} {{ partial "exhibitions/partials/exhibition/status.html" (dict "status" $dates.status "type" "exhibition" )}} {{ end }} {{ if and $options.summary .Params.summary }}
{{ partial "exhibitions/partials/exhibition/summary.html" . }}
{{ end }} {{ if $options.categories }} {{ partial "commons/categories" ( dict "context" . "kind" "event" )}} {{- end -}} {{ if $with_more }} {{ partial "commons/item/more.html" . }} {{- end -}}
{{ if $options.image }} {{ partial "exhibitions/partials/exhibition/media.html" (dict "image" $exhibition.Params.image "layout" $layout )}} {{ end }}
{{ end }}