From bdce77c57bc507b0caee082eece06d60e198fc74 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Mon, 20 Mar 2023 06:26:51 -0700 Subject: [PATCH] Remove literal from example menu template --- content/en/templates/menu-templates.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }}