<ul class="nav nav-pills">
  {{ $current := . }}
  {{ range .Site.Menus.main }}
  {{ $active := $current.IsMenuCurrent "main" . }}
  <li class="nav-item"><a href="{{ .URL }}" class="nav-link {{ if $active }}active{{ end }}">{{ .Title }}</a></li>
  {{ end }}
</ul>
