From 0338d7c711625113da3f44ba52a49b4bacfd5ed0 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Tue, 3 Oct 2023 19:24:58 -0700 Subject: [PATCH] Fix menu template --- content/en/templates/menu-templates.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 }}