Remove main menu item sort

This commit is contained in:
vimux 2020-03-12 19:08:53 -04:00
parent 7bffa43920
commit f469db6c8f
No known key found for this signature in database
GPG key ID: 5A34FDC4EE832E34

View file

@ -10,7 +10,7 @@
</button>
<ul id="menu" class="main-nav__list">
{{- $currentNode := . }}
{{- range sort .Site.Menus.main }}
{{- range .Site.Menus.main }}
{{- $current := (or ($currentNode.IsMenuCurrent "main" .) ($currentNode.HasMenuCurrent "main" .)) }}
{{- if .Name }}
<li class="main-nav__item{{ if $current }} main-nav__item--active{{ end }}">