Fix menu's by properly enclosing the inner ul's into li's as it should be.

This commit is contained in:
Rui Miguel Silva Seabra 2022-11-03 19:05:40 +00:00
parent 1c93397784
commit 45dd9bd29e

View File

@ -7,9 +7,10 @@
{{ end }}
{{ end }}
{{ if gt (len $.Site.Menus.main) $.Site.Params.showMenuItems }}
<li>
<ul class="menu__sub-inner">
<li class="menu__sub-inner-more-trigger">{{ $.Site.Params.MenuMore }} ▾</li>
<li>
<ul class="menu__sub-inner-more hidden">
{{ range last (sub (len $.Site.Menus.main) $.Site.Params.showMenuItems) $.Site.Menus.main }}
{{ if not .HasChildren }}
@ -17,7 +18,9 @@
{{ end }}
{{ end }}
</ul>
</li>
</ul>
</li>
{{ end }}
{{ else }}
{{ range $.Site.Menus.main }}
@ -28,8 +31,10 @@
{{ end }}
{{ if and $.Site.Params.showLanguageSelector (len $.Site.Home.AllTranslations) }}
<div class="spacer"></div>
<!-- <div class="spacer"></div> -->
<li>
<ul class="language-selector">
<li>
<ul class="language-selector-current">
<li>{{ .Language.LanguageName }} ▾</li>
</ul>
@ -39,6 +44,7 @@
{{ end }}
</ul>
</ul>
</li>
{{ end }}
</ul>