diff options
Diffstat (limited to 'layouts/shortcodes/menu.html')
-rw-r--r-- | layouts/shortcodes/menu.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/layouts/shortcodes/menu.html b/layouts/shortcodes/menu.html new file mode 100644 index 0000000..1b3dc54 --- /dev/null +++ b/layouts/shortcodes/menu.html @@ -0,0 +1,13 @@ +{{- $menuID := .Get 0 }} +{{- $caption := .Inner }} + +<nav> + <ol> + {{- range index site.Menus $menuID }} + <li> + <a href="{{ .URL }}"> + {{ .Name }} + </a> + {{- end }} +</ol> +</nav> |