summaryrefslogtreecommitdiff
path: root/layouts/shortcodes/menu.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/shortcodes/menu.html')
-rw-r--r--layouts/shortcodes/menu.html25
1 files changed, 1 insertions, 24 deletions
diff --git a/layouts/shortcodes/menu.html b/layouts/shortcodes/menu.html
index 3f6cc2f..766cfe9 100644
--- a/layouts/shortcodes/menu.html
+++ b/layouts/shortcodes/menu.html
@@ -1,27 +1,4 @@
{{- $menuID := .Get 0 }}
{{- $caption := .Inner }}
+{{ partial "menu.html" (dict "menuID" $menuID "page" $.Page ) }}
-<nav>
- <ol>
- {{- range index site.Menus $menuID }}
- {{if .Params.placeholder }}
- <li class="placeholder">{{.Name}}
- {{else}}
- <li><a href="{{ .URL }}">{{ .Name }}</a>
- {{end}}
-
- {{ if .HasChildren }}
- <ul>
- {{ range .Children }}
- <li>
-
- <a href="{{ .URL }}">
- {{ .Name }}
- </a>
- {{ end }}
- </ul>
-
- {{ end }}
- {{- end }}
-</ol>
-</nav>