diff --git a/layouts/partials/commons/menu-dropdown.html b/layouts/partials/commons/menu-dropdown.html index 42847b7c83bca4aaaaf6014bd3148d9664849091..22bc03114f5f9f862860ea4faf30bbf902d64bfa 100644 --- a/layouts/partials/commons/menu-dropdown.html +++ b/layouts/partials/commons/menu-dropdown.html @@ -3,7 +3,8 @@ {{- $options := .options -}} {{- $level_options := index $options (printf "level_%d" $level) -}} {{- $slug := anchorize .parent.title -}} -{{ $class := "dropdown-menu" }} +{{- $submenu := .submenu -}} +{{- $class := "dropdown-menu" -}} {{ if $level_options.title.active }} {{ $class = printf "%s is-titled" $class }} @@ -27,10 +28,10 @@ {{ end }} </div> - {{ .submenu }} + {{ $submenu }} </div> + {{ else -}} + {{ $submenu }} {{ end -}} - {{ else -}} - {{ .submenu }} {{ end }} </div>