mirror of
https://github.com/Vimux/Binario.git
synced 2024-11-21 21:58:28 +00:00
Remove main menu item sort
This commit is contained in:
parent
7bffa43920
commit
f469db6c8f
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@
|
||||||
</button>
|
</button>
|
||||||
<ul id="menu" class="main-nav__list">
|
<ul id="menu" class="main-nav__list">
|
||||||
{{- $currentNode := . }}
|
{{- $currentNode := . }}
|
||||||
{{- range sort .Site.Menus.main }}
|
{{- range .Site.Menus.main }}
|
||||||
{{- $current := (or ($currentNode.IsMenuCurrent "main" .) ($currentNode.HasMenuCurrent "main" .)) }}
|
{{- $current := (or ($currentNode.IsMenuCurrent "main" .) ($currentNode.HasMenuCurrent "main" .)) }}
|
||||||
{{- if .Name }}
|
{{- if .Name }}
|
||||||
<li class="main-nav__item{{ if $current }} main-nav__item--active{{ end }}">
|
<li class="main-nav__item{{ if $current }} main-nav__item--active{{ end }}">
|
||||||
|
|
Loading…
Reference in a new issue