Hide hamburger menu button on mobile when there are no menu items (#254)
* Hide hamburger menu button on mobile when there are no menu items fix 253 * Fix template identation Co-authored-by: Luiz F. A. de Prá <luizdepra@users.noreply.github.com>
This commit is contained in:
parent
a5662825e5
commit
0a45a52fcb
|
@ -3,6 +3,7 @@
|
||||||
<a class="navigation-title" href="{{ .Site.BaseURL | relLangURL }}">
|
<a class="navigation-title" href="{{ .Site.BaseURL | relLangURL }}">
|
||||||
{{ .Site.Title }}
|
{{ .Site.Title }}
|
||||||
</a>
|
</a>
|
||||||
|
{{ if or .Site.Menus.main .Site.IsMultiLingual }}
|
||||||
<input type="checkbox" id="menu-toggle" />
|
<input type="checkbox" id="menu-toggle" />
|
||||||
<label class="menu-button float-right" for="menu-toggle"><i class="fas fa-bars"></i></label>
|
<label class="menu-button float-right" for="menu-toggle"><i class="fas fa-bars"></i></label>
|
||||||
<ul class="navigation-list">
|
<ul class="navigation-list">
|
||||||
|
@ -31,5 +32,6 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
|
{{ end }}
|
||||||
</section>
|
</section>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
Loading…
Reference in New Issue