<ul>
  {{ $currentPage := . }}
  {{ range .Site.Menus.main }}
  <li class="{{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}">
    <a href="{{ .URL }}">
      {{ .Pre }}
      <span>{{ .Name }}</span>
    </a>
  </li>
  {{ end }}
</ul>
