blob: 5b6e2a215d802f71cdd5cd02b3656c3dd3043e87 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<div id="main-menu-mobile" class="main-menu-mobile">
<ul>
{{ $currentPage := . }}
{{ range .Site.Menus.main }}
{{ $active := or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }}
{{ $active = or $active (eq (.URL | relLangURL) ($currentPage.RelPermalink | relLangURL)) }}
<li class="menu-item-{{ .Name | lower }} {{ if $active }}active{{ end }}">
<a href="{{ .URL }}">
<span>{{ .Name }}</span>
</a>
</li>
{{end}}
</ul>
</div>
|