Align top menu behavior with bottom menu.

This commit is contained in:
tastytea 2020-12-28 21:59:30 +01:00
parent c32978cd4f
commit c9c490df51
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 4 additions and 1 deletions

View File

@ -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>