Skip to content
Snippets Groups Projects
Commit 6c5e01a8 authored by alexisben's avatar alexisben
Browse files

handle menu legacy

parent 38263ac3
No related branches found
No related tags found
No related merge requests found
......@@ -10,4 +10,11 @@
{{ $menu = index site.Data.menus $kind }}
{{ end }}
{{ if reflect.IsSlice $menu }}
{{/* LEGACY */}}
{{ $menu = (dict
"items" $menu
) }}
{{ end }}
{{ return $menu }}
\ No newline at end of file
......@@ -2,7 +2,8 @@
{{ $items := .items }}
{{ $context := .context }}
{{ if $kind }}
{{ $items = partial "GetMenu" $kind }}
{{ $menu := partial "GetMenu" $kind }}
{{ $items = $menu.items }}
{{ end }}
{{- $level := .level -}}
{{- $stop := .stop -}}
......
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