 $currentPage := . -}}
              {{ range site.Menus.main -}}
              {{ if .HasChildren -}}
              <li class="dropdown">
                <a href="#" class="dropdown-toggle{{ if $currentPage.HasMenuCurrent "main" . }} current-parent{{ end }}" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                  {{ .Name }} <span class="ion-ios-arrow-down"></span>
                </a>
                <ul class="dropdown-menu">
                  {{ range .Children