diff --git a/content/en/templates/menu-templates.md b/content/en/templates/menu-templates.md index 47baf7114..7649c0e56 100644 --- a/content/en/templates/menu-templates.md +++ b/content/en/templates/menu-templates.md @@ -47,7 +47,7 @@ This partial template recursively "walks" a menu structure, rendering a localize {{- $attrs := dict "href" .URL}} {{- if $page.IsMenuCurrent .Menu . }} {{- $attrs = merge $attrs (dict "class" "active" "aria-current" "page") }} - {{- else if $page.HasMenuCurrent "main" .}} + {{- else if $page.HasMenuCurrent .Menu .}} {{- $attrs = merge $attrs (dict "class" "ancestor" "aria-current" "true") }} {{- end }}