Hide the menu toggle if the menu is empty

This commit is contained in:
Dan Jordan 2019-05-30 22:48:33 +01:00 committed by GitHub
parent f385c2d6ce
commit bd3ef6a953
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,7 +44,9 @@
{{ else }}
<p class="logo"><a href="{{.Site.BaseURL}}">{{ .Site.Title }} </a></p>
{{ end }}
{{ if (isset .Site.Menus "main") }}
<button class="menu-toggle" type="button"></button>
{{ end }}
</div>
</header>
<nav class="nav">