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