From: Kai Moritz Date: Sat, 13 Dec 2025 15:52:00 +0000 (+0100) Subject: WIP:layout:menu X-Git-Url: https://juplo.de/gitweb/?a=commitdiff_plain;h=d342f5f5cbe261b7cd1bd1688a5693a2030abc9c;p=website WIP:layout:menu --- 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 }} -