diff --git a/content/en/templates/menu-templates.md b/content/en/templates/menu-templates.md index 6c009cbdb..e2d141f06 100644 --- a/content/en/templates/menu-templates.md +++ b/content/en/templates/menu-templates.md @@ -49,6 +49,12 @@ This partial template recursively "walks" a menu structure, rendering a localize {{- else if $page.HasMenuCurrent .Menu .}} {{- $attrs = merge $attrs (dict "class" "ancestor" "aria-current" "true") }} {{- end }} + {{- $name := .Name }} + {{- with .Identifier }} + {{- with T . }} + {{- $name = . }} + {{- end }} + {{- end }}
  • {{ or (T .Identifier) .Name | safeHTML }} + >{{ $name }} {{- with .Children }}