Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/luizdepra/hugo-coder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryousifd <yousifd@users.noreply.github.com>2020-01-22 22:05:57 +0300
committerLuiz F. A. de Prá <luizdepra@users.noreply.github.com>2020-01-22 22:05:57 +0300
commit0a45a52fcbe8de8953ea43210d988f3e37932195 (patch)
treedfa4786b76b71f127009b1909dfbb013cab025b0
parenta5662825e5639b735902d7f8a120a9b387191ab9 (diff)
Hide hamburger menu button on mobile when there are no menu items (#254)
* Hide hamburger menu button on mobile when there are no menu items fix 253 * Fix template identation Co-authored-by: Luiz F. A. de Prá <luizdepra@users.noreply.github.com>
-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 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>