aboutsummaryrefslogtreecommitdiff
path: root/themes/hugo-whisper-theme/layouts/partials/main-menu-mobile.html
blob: 5211ea7d7c60620d48f2e4e06c9e6b7148b4f2de (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
<div id="main-menu-mobile" class="main-menu-mobile">
  <ul>
    {{ $currentPage := . }}
    {{ range .Site.Menus.main }}
    <li class="menu-item-{{ .Name | lower }}{{ if $currentPage.IsMenuCurrent "main" . }} active{{ end }}">
      <a href="{{ .URL }}">
        <span>{{ .Name }}</span>
      </a>
    </li>
    {{end}}
  </ul>
</div>