summaryrefslogtreecommitdiff
path: root/layouts/partials/header.html
diff options
context:
space:
mode:
authorDan Jordan <dan@dan-jordan.co.uk>2019-05-30 22:48:33 +0100
committerGitHub <noreply@github.com>2019-05-30 22:48:33 +0100
commitbd3ef6a9538e40db5560fb5b565029ae34889ebf (patch)
tree420b91b7789a253d8e663dcae9425e8b9f6b8f9b /layouts/partials/header.html
parentf385c2d6ceeab47965f7ff741a63646707c81715 (diff)
Hide the menu toggle if the menu is empty
Diffstat (limited to 'layouts/partials/header.html')
-rw-r--r--layouts/partials/header.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index a0af512..4d9b512 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -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">