summaryrefslogtreecommitdiff
path: root/layouts/shortcodes/menu.html
diff options
context:
space:
mode:
authormms <michal@sapka.me>2024-04-14 21:11:05 +0200
committermms <michal@sapka.me>2024-04-14 21:11:05 +0200
commit611f78ae533bbf91104afc8904831dcccf0f0d90 (patch)
tree78695a643e2e01344e8bc8cdf92def1b5ae11cf8 /layouts/shortcodes/menu.html
parent741a247f7e230c293b6a3dcc48a38edf02156a8b (diff)
feat: tidy up rot
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>