Merge pull request #480 from Josde/fix-top-menu-ordering

Make top menu order consistent across localizations.
This commit is contained in:
Djordje Atlialp 2024-10-17 22:37:11 +02:00 committed by GitHub
commit 7b4f0aba96
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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