sadium/themes/hugo-theme-terminal/layouts/partials/mobile-menu.html

21 lines
593 B
HTML
Raw Normal View History

2023-12-13 21:47:26 +03:00
<ul class="menu menu--mobile">
2024-01-16 18:45:21 +03:00
<li class="menu__trigger">Меню&nbsp;</li>
2023-12-13 21:47:26 +03:00
<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>