diff options
| author | 南小北 <nanxiaobei@gmail.com> | 2019-05-31 11:40:14 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-31 11:40:14 +0800 |
| commit | ec2b36577366b630e5861b771699f92fc110dab2 (patch) | |
| tree | 420b91b7789a253d8e663dcae9425e8b9f6b8f9b /layouts | |
| parent | f385c2d6ceeab47965f7ff741a63646707c81715 (diff) | |
| parent | bd3ef6a9538e40db5560fb5b565029ae34889ebf (diff) | |
Merge pull request #31 from danjordan/patch-1
Hide the menu toggle if the menu is empty
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/partials/header.html | 2 |
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"> |
