From f0506acd6f70da636b8fdb23439c85bbf2392b40 Mon Sep 17 00:00:00 2001 From: Arne Rief Date: Sat, 16 Aug 2025 22:42:03 +0200 Subject: HTML templates done --- layouts/partials/navmenu.html | 58 +++++++++++++++++++++++-------------------- 1 file changed, 31 insertions(+), 27 deletions(-) (limited to 'layouts/partials/navmenu.html') diff --git a/layouts/partials/navmenu.html b/layouts/partials/navmenu.html index 05fd64f..91e53b3 100644 --- a/layouts/partials/navmenu.html +++ b/layouts/partials/navmenu.html @@ -1,45 +1,49 @@ {{- /* +Simplified version of the `hugo new template` menu.html default Renders a menu for the given menu ID. -@context {page} page The current page. -@context {string} menuID The menu ID. +@context {page} page: The current page. +@context {string} menuID: The menu ID. @example: {{ partial "navmenu.html" (dict "menuID" "main" "page" .) }} */}} -{{- $page := .page }} +{{- $currentPage := .page }} {{- $menuID := .menuID }} {{- with index site.Menus $menuID }} - +{{- end -}} -- cgit v1.2.3