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:
yousifd 2020-01-22 22:05:57 +03:00 committed by Luiz F. A. de Prá
parent a5662825e5
commit 0a45a52fcb
1 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,7 @@
<a class="navigation-title" href="{{ .Site.BaseURL | relLangURL }}">
{{ .Site.Title }}
</a>
{{ if or .Site.Menus.main .Site.IsMultiLingual }}
<input type="checkbox" id="menu-toggle" />
<label class="menu-button float-right" for="menu-toggle"><i class="fas fa-bars"></i></label>
<ul class="navigation-list">
@ -31,5 +32,6 @@
{{ end }}
{{ end }}
</ul>
{{ end }}
</section>
</nav>