Merge pull request #31 from danjordan/patch-1

Hide the menu toggle if the menu is empty
This commit is contained in:
南小北 2019-05-31 11:40:14 +08:00 committed by GitHub
commit ec2b365773
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

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">