{{ $currentPage := . }}
{{ range .menu }}
{{ if .HasChildren }}
-
{{ if .URL }}
{{ .Pre }}
{{ .Name }}
{{ else }}
{{ .Pre }}
{{ .Name }}
{{ end }}
{{ else }}
-
{{ if .URL }}
{{ .Pre }}
{{ .Name }}
{{ else }}
{{ .Pre }}
{{ .Name }}
{{ end }}
{{ end }}
{{ end }}