diff options
author | mms <michal@sapka.me> | 2024-04-14 21:11:05 +0200 |
---|---|---|
committer | mms <michal@sapka.me> | 2024-04-14 21:11:05 +0200 |
commit | 611f78ae533bbf91104afc8904831dcccf0f0d90 (patch) | |
tree | 78695a643e2e01344e8bc8cdf92def1b5ae11cf8 /layouts/shortcodes/menu.html | |
parent | 741a247f7e230c293b6a3dcc48a38edf02156a8b (diff) |
feat: tidy up rot
Diffstat (limited to 'layouts/shortcodes/menu.html')
-rw-r--r-- | layouts/shortcodes/menu.html | 25 |
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> |