{{ $item := .item }} {{ $level := .level }} {{ $type := $item.Type | default "page" }} {{ $type = $type | singularize }} {{ $subtitle := $item.Params.subtitle }} {{ $options := .options }} {{ $itemprop := .itemprop }} {{ $title_attributes := printf "class='%s-title'" $type }} {{ with $itemprop }} {{ $title_attributes = printf "%s %s" $title_attributes . }} {{ end }} {{ $link_title := safeHTML (i18n "commons.more_aria" (dict "Title" $item.Title)) }} {{ $heading_tag := partial "GetHeadingTag" (dict "level" $level "attributes" $title_attributes )}} {{ if and $options.subtitle $subtitle }}
{{ end }} {{ $heading_tag.open }} {{ $heading_tag.close }} {{ if and $options.subtitle $subtitle }}

{{ partial "PrepareHTML" $subtitle }}

{{ end }} {{ if and $options.subtitle $subtitle }}
{{ end }}