{{ $subtitle := "" }} {{ if or .Params.journal_title .Params.date .Params.authors_list }} {{- with .Params.journal_title -}} {{ $subtitle = printf "%s" .}} {{- end -}} {{- with .Params.date -}} {{ $subtitle = printf "%s%s" $subtitle ( .Format "2006" ) }} {{- end -}} {{- with .Params.authors_list -}} {{ $subtitle = printf "%s%s" $subtitle . }} {{- end -}} {{ end }} {{- partial "header/hero.html" (dict "title" .Title "subtitle" (partial "PrepareHTML" $subtitle) "context" . ) -}}