From d342f5f5cbe261b7cd1bd1688a5693a2030abc9c Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sat, 13 Dec 2025 16:52:00 +0100 Subject: [PATCH] WIP:layout:menu --- hugo.yaml | 4 ++++ layouts/_partials/menu.html | 32 ++++++-------------------------- 2 files changed, 10 insertions(+), 26 deletions(-) diff --git a/hugo.yaml b/hugo.yaml index 2ffc74fc..104b8a6d 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -1,5 +1,9 @@ baseURL: https://example.org/ languageCode: en-US +mainSections: + - blog + - projects + - about menus: main: - name: Home diff --git a/layouts/_partials/menu.html b/layouts/_partials/menu.html index e097ffdf..4da18137 100644 --- a/layouts/_partials/menu.html +++ b/layouts/_partials/menu.html @@ -1,38 +1,18 @@ -{{- /* -Renders a menu for the given menu ID. - -@context {page} page The current page. -@context {string} menuID The menu ID. - -@example: {{ partial "menu.html" (dict "menuID" "main" "page" .) }} -*/}} - {{- $page := .page }} {{- $menuID := .menuID }} -