aboutsummaryrefslogtreecommitdiff
path: root/themes/terrassa/layouts/partials/menu.html
blob: abfb92b72c62d47876ca6e7f341721b104492402 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<nav class="menu" aria-label="menu">
    <ul class="menu__items" aria-label="menu">
        {{ $current := . }}
        {{ range .Site.Menus.main }}
        <li class="menu__items__item" aria-label="{{ .Name }}">
            <a href="{{ .URL }}" class="menu__items__item__link {{ if $current.IsMenuCurrent "main" . }}active{{ end }}"
                alt="{{ .Name }}" role="menuitem">
                {{ .Name }}
            </a>
        </li>
        {{ end }}
    </ul>
</nav>