{{- $page := .page }} {{- range .menuEntries }} {{- $attrs := dict "href" .URL }} {{- $attrs = merge $attrs (dict "class" "nav-link") }} {{- if $page.IsMenuCurrent .Menu . }} {{- $attrs = merge $attrs (dict "class" "active nav-link" "aria-current" "page") }} {{- end }} {{- $name := .Name }} {{- with .Identifier }} {{- with T . }} {{- $name = . }} {{- end }} {{- end }}