web-bvebarcelona/themes/crab/layouts/partials/menu.html

33 lines
883 B
HTML
Raw Normal View History

2018-03-04 19:45:46 +01:00
<nav>
2018-03-06 23:49:21 +01:00
<input type="checkbox" id="burger-toggle" class="burger-toggle" hidden>
<label for="burger-toggle" class="burger-button">&#9776; {{ i18n "menu" }}</label>
<div id="menu-entries">
2018-03-04 19:45:46 +01:00
<ul class="first">
2018-03-05 11:07:24 +01:00
{{ $currentPage := . }}
2018-03-04 19:45:46 +01:00
{{ range .Site.Menus.main }}
2018-03-05 11:07:24 +01:00
{{ if false }}
2018-03-04 19:45:46 +01:00
<li><a class="selected">{{ .Name }}</a>
{{ else }}
<li><a href="{{.URL}}">{{ .Name }}</a>
{{ end }}
{{ if .HasChildren }}
<ul class="second">
{{ range .Children }}
2018-03-05 11:07:24 +01:00
<li><a href="{{.URL}}">{{ .Name }}</a>
2018-03-04 19:45:46 +01:00
{{ if .HasChildren }}
<ul class="third">
{{ range .Children }}
<li><a href="{{.URL}}">{{ .Name }}</a></li>
{{ end }}
</ul>
{{ end }}
</li>
{{ end }}
</ul>
{{ end }}
</li>
{{ end }}
</ul>
2018-03-06 23:49:21 +01:00
</div>
2018-03-04 19:45:46 +01:00
</nav>