Skip to content

Commit

Permalink
Remove literal from example menu template
Browse files Browse the repository at this point in the history
  • Loading branch information
jmooring authored Mar 20, 2023
1 parent c0f23b2 commit bdce77c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/en/templates/menu-templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
<li>
Expand Down

0 comments on commit bdce77c

Please sign in to comment.