Merge pull request #31 from danjordan/patch-1
Hide the menu toggle if the menu is empty
This commit is contained in:
commit
ec2b365773
1 changed files with 2 additions and 0 deletions
|
@ -44,7 +44,9 @@
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<p class="logo"><a href="{{.Site.BaseURL}}">{{ .Site.Title }} </a></p>
|
<p class="logo"><a href="{{.Site.BaseURL}}">{{ .Site.Title }} </a></p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ if (isset .Site.Menus "main") }}
|
||||||
<button class="menu-toggle" type="button"></button>
|
<button class="menu-toggle" type="button"></button>
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
<nav class="nav">
|
<nav class="nav">
|
||||||
|
|
Loading…
Reference in a new issue