I have 5 menu items declared in config.toml and the menu is being called in nav.html. But 7 menu items are being displayed? Granted the 2 extras menu items are for content of my site but given they’re not declared in menu config.toml how/why are they displaying?
config.toml
[menus]
[[menu.main]]
name = "r3"
url = "/r3/"
pre = "r3"
weight = 1
[[menu.main]]
name = "r8"
url = "/r8/"
pre = "r8"
weight = 2
[[menu.main]]
name = "reviews"
url = "/reviews/"
pre = "reviews"
weight = 3
[[menu.main]]
name = "faqs"
url = "/faqs/"
pre = "faqs"
weight = 4
[[menu.main]]
name = "buy now"
url = "/buy"
pre = "buynow"
weight = 5
nav.html
{{ if .Site.Menus.main }}
{{ range .Site.Menus.main }}
<a class="{{ if eq $currentPageUrl .URL }} o-50{{end}}" href="{{ .URL }}" title="{{ .URL }} page">{{ .Name }}</a>
{{ end }}
{{ end }}