{{ if or $.Site.Params.showMenuItems (eq $.Site.Params.showMenuItems 0) }} {{ range first $.Site.Params.showMenuItems $.Site.Menus.main }} {{ if not .HasChildren }}
  • {{ .Name }}
  • {{ end }} {{ end }} {{ if gt (len $.Site.Menus.main) $.Site.Params.showMenuItems }}
    • {{ $.Site.Params.MenuMore | default "Show more" }} {{ partial "greater-icon.html" . }}
      • {{ range last (sub (len $.Site.Menus.main) $.Site.Params.showMenuItems) $.Site.Menus.main }} {{ if not .HasChildren }}
      • {{ .Name }}
      • {{ end }} {{ end }}
    {{ end }} {{ else }} {{ range $.Site.Menus.main }} {{ if not .HasChildren }}
  • {{ .Name }}
  • {{ end }} {{ end }} {{ end }}
    {{ range $.Site.Menus.main }} {{ if not .HasChildren }}
  • {{ .Name }}
  • {{ end }} {{ end }}