2019-01-28 00:11:02 +00:00
|
|
|
<nav class="menu">
|
2019-01-31 21:06:54 +00:00
|
|
|
<ul class="menu__inner menu__inner--desktop">
|
|
|
|
{{ if $.Site.Params.showMenuItems }}
|
|
|
|
{{ range first $.Site.Params.showMenuItems $.Site.Menus.main }}
|
2019-02-01 07:39:12 +00:00
|
|
|
{{ if not .HasChildren }}
|
|
|
|
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
|
|
|
|
{{ end }}
|
2019-01-31 21:06:54 +00:00
|
|
|
{{ end }}
|
|
|
|
<ul class="menu__sub-inner">
|
|
|
|
{{ if gt (len $.Site.Menus.main) $.Site.Params.showMenuItems }}
|
|
|
|
<li class="menu__sub-inner-more-trigger">{{ $.Site.Params.MenuMore }} ▾</li>
|
|
|
|
|
|
|
|
<ul class="menu__sub-inner-more hidden">
|
|
|
|
{{ range last (sub (len $.Site.Menus.main) $.Site.Params.showMenuItems) $.Site.Menus.main }}
|
2019-02-01 07:39:12 +00:00
|
|
|
{{ if not .HasChildren }}
|
|
|
|
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
|
|
|
|
{{ end }}
|
2019-01-31 21:06:54 +00:00
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
{{ else }}
|
|
|
|
{{ range $.Site.Menus.main }}
|
2019-02-01 07:39:12 +00:00
|
|
|
{{ if not .HasChildren }}
|
|
|
|
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
|
|
|
|
{{ end }}
|
2019-01-31 21:06:54 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<ul class="menu__inner menu__inner--mobile">
|
2019-01-29 10:18:14 +00:00
|
|
|
{{ range $.Site.Menus.main }}
|
2019-02-01 07:39:12 +00:00
|
|
|
{{ if not .HasChildren }}
|
|
|
|
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
|
|
|
|
{{ end }}
|
2019-01-28 00:11:02 +00:00
|
|
|
{{ end }}
|
|
|
|
</ul>
|
2019-01-29 10:18:14 +00:00
|
|
|
</nav>
|