{{ $exhibitions := . }} {{ $current_exhibitions := where $exhibitions "Params.dates.status" "current" }} {{ $future_exhibitions := where $exhibitions "Params.dates.status" "future" }} {{ if (or $current_exhibitions $future_exhibitions) }}
{{ with $current_exhibitions }}

{{ i18n "exhibitions.current" }}

{{ partial "exhibitions/partials/exhibitions.html" (dict "exhibitions" . "heading_level" 3 "layout" site.Params.events.index.highlight_exhibitions.current.layout "options" site.Params.events.index.highlight_exhibitions.current.options )}} {{ end }} {{ with $future_exhibitions }}

{{ i18n "exhibitions.future" }}

{{ partial "exhibitions/partials/exhibitions.html" (dict "exhibitions" . "heading_level" 3 "layout" site.Params.events.index.highlight_exhibitions.future.layout "options" site.Params.events.index.highlight_exhibitions.future.options )}} {{ end }}
{{ end }}