sort top menu items by identifier
This commit is contained in:
parent
a902dacd84
commit
e78a00ee84
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
<nav class="menu">
|
<nav class="menu">
|
||||||
<ul class="menu__inner">
|
<ul class="menu__inner">
|
||||||
{{- $currentPage := . -}}
|
{{- $currentPage := . -}}
|
||||||
{{ range .Site.Menus.main -}}
|
{{ range sort .Site.Menus.main ".Identifier" -}}
|
||||||
<li><a href="{{ .URL | relLangURL }}">{{ .Name }}</a></li>
|
<li><a href="{{ .URL | relLangURL }}">{{ .Name }}</a></li>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue