sadium/layouts/_default/partials/mobile-menu.html
Артём c2ce533e9d
All checks were successful
/ site (push) Successful in 2s
Anchors
2024-01-25 20:37:36 +03:00

20 lines
593 B
HTML

<ul class="menu menu--mobile">
<li class="menu__trigger">Меню&nbsp;</li>
<li>
<ul class="menu__dropdown">
{{ range $.Site.Menus.main }}
{{ if not .HasChildren }}
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
{{ end }}
{{ end }}
{{ if and $.Site.Params.showLanguageSelector (len $.Site.Home.AllTranslations) }}
<hr />
{{ range $.Site.Home.AllTranslations }}
<li>
<a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>
</li>
{{ end }}
{{ end }}
</ul>
</li>
</ul>