mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 08:15:37 +00:00
Remove literal from example menu template
This commit is contained in:
1 parent
c0f23b216e
commit
bdce77c57b
1 file changed
+1
-1
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user