    <a class="dropdown-item{{ if $currentPage.IsMenuCurrent "Main" . }} active {{ end }}" href="{{ .URL | absURL}}">{{ .Name }}</a>
                {{ end }}
                </div>
                </li>
              {{ else }}
                  <li class= "nav-item {{ if or ($currentPage.IsMenuCurrent "Main" .) ($currentPage.HasMenuCurrent "Main" .) }} active {{ end }}">
                  <a href="{{ .URL | absURL }}" class="nav-link">
                      {{ .Pre }}
                      <span>{{ .Name }