{{- $title := or .Params.header_text .Title -}} {{ with .Params.subtitle }} {{- $title = printf "%s %s" $title . -}} {{ end }} {{- partial "header/hero.html" (dict "title" $title "image" .Params.image "sizes" site.Params.image_sizes.sections.events.hero_single "context" . ) -}}