mirror of https://github.com/luizdepra/hugo-coder.git

yousifd
22.05.2020 0a45a52fcbe8de8953ea43210d988f3e37932195
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>
1 files modified
2 ■■■■■ changed files
layouts/partials/header.html 2 ●●●●● patch | view | raw | blame | history
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>