{{ $heading_level := .heading_level | default 2 }} {{/* handle boolean issue */}} {{ if eq $heading_level false }} {{ $heading_level = 2 }} {{ end }} {{ $heading_tag := partial "GetHeadingTag" (dict "level" $heading_level "attributes" "class='block-title'" )}} {{ if or .title .description }}
{{ if .title }} {{ $heading_tag.open }} {{- if .link -}} {{- end -}} {{ partial "PrepareHTML" .title }} {{- if .link -}} {{- end -}} {{ $heading_tag.close }} {{ end }} {{ if .description }}
{{- partial "PrepareHTML" .description -}}
{{ end }}
{{ end }}