Hide the menu button on mobile if the menu is empty

This commit is contained in:
Toon Schoenmakers 2020-10-17 23:06:50 +02:00
parent 30d5681909
commit cb61741202

View File

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