Skip to content
Snippets Groups Projects
Commit d978c989 authored by Alexis BENOIT's avatar Alexis BENOIT
Browse files

hotifx: menu dropdown condition

parent d7896995
No related branches found
No related tags found
No related merge requests found
......@@ -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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment