{{- if ne .kind "blank" -}}
{{ .title }}
{{- else -}}
{{ .title }}
{{- end -}}
{{- if ne $stop $level -}}
{{- if $hasDropdown }}
{{/* dropdown-menu class is required for bootstrap js */}}
{{- end -}}
{{- if gt (len .children) 0 -}}
{{- $nextLevel := add $level 1 -}}
{{- partial "commons/menu.html"
(dict
"items" .children
"level" $nextLevel
) -}}
{{- end -}}
{{- if $hasDropdown -}}