{{- $page := .page }} {{- $menuID := .menuID }} {{- with index site.Menus $menuID }} {{- partial "inline/menu/walk.html" (dict "page" $page "menuEntries" .) }} {{ if page.IsTranslated }} {{ end }} {{- end }} {{- define "partials/inline/menu/walk.html" }} {{- $page := .page }} {{- range .menuEntries }} {{- if .Children }} {{- $attrs := dict "href" .URL "class" "nav-link dropdown-toggle" "role" "button" "data-bs-toggle" "dropdown" "aria-expanded" "false" }} {{- if $page.HasMenuCurrent .Menu . }} {{- $attrs = merge $attrs (dict "class" "nav-link dropdown-toggle active" "aria-current" "page" "role" "button" "data-bs-toggle" "dropdown" "aria-expanded" "false") }} {{- end }} {{- else }} {{- $attrs := dict "href" .URL "class" "nav-link" }} {{- if $page.IsMenuCurrent .Menu . }} {{- $attrs = merge $attrs (dict "class" "nav-link active" "aria-current" "page") }} {{- end }} {{- end}} {{- end }} {{- end }} {{- define "partials/inline/menu/dropdownitems.html" }} {{- $page := .page }} {{- range .menuEntries }} {{- $attrs := dict "href" .URL "class" "dropdown-item" }} {{- if $page.IsMenuCurrent .Menu . }} {{- $attrs = merge $attrs (dict "class" "dropdown-item active" "aria-current" "page") }} {{- end }}
  • {{ or (T .Identifier) .Name | safeHTML }}
  • {{- end }} {{- end }}