From 1bf4d8aca6f81f2dddd0262e74b278cd9985b53d Mon Sep 17 00:00:00 2001 From: Arne Rief Date: Fri, 8 Aug 2025 20:50:19 +0200 Subject: initial commit, basic setup --- layouts/partials/navmenu.html | 45 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 layouts/partials/navmenu.html (limited to 'layouts/partials/navmenu.html') diff --git a/layouts/partials/navmenu.html b/layouts/partials/navmenu.html new file mode 100644 index 0000000..05fd64f --- /dev/null +++ b/layouts/partials/navmenu.html @@ -0,0 +1,45 @@ +{{- /* +Renders a menu for the given menu ID. + +@context {page} page The current page. +@context {string} menuID The menu ID. + +@example: {{ partial "navmenu.html" (dict "menuID" "main" "page" .) }} +*/}} + +{{- $page := .page }} +{{- $menuID := .menuID }} + +{{- with index site.Menus $menuID }} + +{{- end }} + -- cgit v1.2.3