From 0a45a52fcbe8de8953ea43210d988f3e37932195 Mon Sep 17 00:00:00 2001
From: yousifd <yousifd@users.noreply.github.com>
Date: Wed, 22 Jan 2020 19:05:57 +0000
Subject: [PATCH] Hide hamburger menu button on mobile when there are no menu items (#254)

---
 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 0f9197b..8043bea 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -3,6 +3,7 @@
     <a class="navigation-title" href="{{ .Site.BaseURL | relLangURL }}">
       {{ .Site.Title }}
     </a>
+    {{ if or .Site.Menus.main .Site.IsMultiLingual }}
     <input type="checkbox" id="menu-toggle" />
     <label class="menu-button float-right" for="menu-toggle"><i class="fas fa-bars"></i></label>
     <ul class="navigation-list">
@@ -31,5 +32,6 @@
         {{ end }}
       {{ end }}
     </ul>
+    {{ end }}
   </section>
 </nav>

--
Gitblit v1.10.0