{{ $item := .item }} {{ $level := .level }} {{ $type := $item.Type | default "page" }} {{ $item_type := $type | singularize }} {{ $subtitle := $item.Params.subtitle }} {{ $options := .options }} {{/* TODO: checker itemprop */}} {{ $heading_tag := partial "GetHeadingTag" (dict "level" $level "attributes" (printf "class='%s-title'" $item_type) )}} {{ 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 }}