Я пытаюсь заказать элементы в меню, но у меня не получается. Я пытался следовать в соответствии с их документами, но это вообще не работает.
В моей шапке:
{{ range .Site.Data.Menu }}
<li>
<a href="{{ .URL | absURL }}"
{{ if and ( isset . "Title" ) ( ne .Title "" ) }} title="{{ .Title }}"{{ end }}>
{{ if and ( isset . "IconClass" ) ( ne .IconClass "" ) }}
<i class="fa {{ .IconClass }}"></i>
{{ end }}
{{ .Name }}
</a>
</li>
{{ end }}
menu.toml
[home]
Name = "Home"
Title = "Home"
URL = "/home"
weight = 1
[apparatus]
Name = "Apparatus"
URL = "/apparatus"
weight = 2
[deliveries]
Name = "Deliveries"
URL = "/deliveries"
weight = 3
[command]
Name = "Command"
URL = "/command"
weight = 4
[ambulance]
Name = "Ambulance"
URL = "/ambulance"
weight = 5
[service]
Name = "Service"
URL = "/service"
weight = 6
[about]
Name = "about"
URL = "/about"
weight = 7
[contact]
Name = "Contact"
URL = "/contact"
weight = 8
Меню оказывается в произвольном порядке. Как мне заказать их так, как я хочу?