Align top menu behavior with bottom menu.
This commit is contained in:
parent
c32978cd4f
commit
c9c490df51
|
@ -8,10 +8,13 @@
|
|||
<ul>
|
||||
{{- $curr := . }}
|
||||
{{- range .Site.Menus.main }}
|
||||
{{- $selected := cond (or ($curr.IsMenuCurrent "main" .) ($curr.HasMenuCurrent "main" .)) "" "" }}
|
||||
{{- if .URL }}
|
||||
<li>
|
||||
<a href="{{ .URL }}">{{ .Name }}</a>
|
||||
</li>
|
||||
{{- else }}
|
||||
{{ .Name }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
</ul>
|
||||
</nav>
|
||||
|
|
Reference in New Issue
Block a user