From a51c9890d2b9720297c72b646c894a11474e8532 Mon Sep 17 00:00:00 2001 From: Hunter Kvalevog Date: Mon, 29 Jun 2026 23:15:12 -0500 Subject: --- themes/kvog/layouts/_partials/menu.html | 51 --------------------------------- 1 file changed, 51 deletions(-) delete mode 100644 themes/kvog/layouts/_partials/menu.html (limited to 'themes/kvog/layouts/_partials/menu.html') diff --git a/themes/kvog/layouts/_partials/menu.html b/themes/kvog/layouts/_partials/menu.html deleted file mode 100644 index 14245b5..0000000 --- a/themes/kvog/layouts/_partials/menu.html +++ /dev/null @@ -1,51 +0,0 @@ -{{- /* -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 }} - -{{- with index site.Menus $menuID }} - -{{- end }} - -{{- define "_partials/inline/menu/walk.html" }} - {{- $page := .page }} - {{- range .menuEntries }} - {{- $attrs := dict "href" .URL }} - {{- if $page.IsMenuCurrent .Menu . }} - {{- $attrs = merge $attrs (dict "class" "active" "aria-current" "page") }} - {{- else if $page.HasMenuCurrent .Menu .}} - {{- $attrs = merge $attrs (dict "class" "ancestor" "aria-current" "true") }} - {{- end }} - {{- $name := .Name }} - {{- with .Identifier }} - {{- with T . }} - {{- $name = . }} - {{- end }} - {{- end }} -
  • - {{ $name }} - {{- with .Children }} - - {{- end }} -
  • - {{- end }} -{{- end }} -- cgit v1.2.3