Merge pull request #202 from schoentoon/hide-menu-button-mobile

Hide the menu button on mobile if the menu is empty
This commit is contained in:
Radek Kozieł 2020-11-15 19:16:08 +01:00 committed by GitHub
commit 4d71df019b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,9 @@
<div class="header__logo"> <div class="header__logo">
{{ partial "logo.html" . }} {{ partial "logo.html" . }}
</div> </div>
<div class="menu-trigger">menu</div> {{ if len $.Site.Menus }}
<div class="menu-trigger">menu</div>
{{ end }}
</div> </div>
{{ if len $.Site.Menus }} {{ if len $.Site.Menus }}
{{ partial "menu.html" . }} {{ partial "menu.html" . }}