[[menu.main]]
identifier = 'project'
name = 'Project'
title = 'Project'
url = '/project/'
weight = 20
[[menu.main]]
parent = 'project'
name = 'Foo'
title = 'Foo'
url = '/foo/'
weight = 30
Then in your header or menu template
{{ range .Site.Menus.main }}
{{ if .HasChildren }}
<!-- Menu entry has children, iterate through them -->
{{ range .Children }}
<a href="{{ .URL }}">{{ .Name }}</a>
{{ end }}
{{ else }}
<a href="{{ .URL }}">{{ .Name }}</a>
{{ end }}
{{ end }}