Remove literal from example menu template

This commit is contained in:
Joe Mooring
2023-03-20 06:26:51 -07:00
committed by GitHub
parent c0f23b216e
commit bdce77c57b
+1 -1
View File
@@ -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>