Empty hamburger visible

This commit is contained in:
Nuno Coração 2023-12-01 13:20:24 +00:00
parent 723da1ace0
commit 242c43ed78

View file

@ -88,6 +88,7 @@
<label id="menu-button" for="menu-controller" class="block"> <label id="menu-button" for="menu-controller" class="block">
<input type="checkbox" id="menu-controller" class="hidden" /> <input type="checkbox" id="menu-controller" class="hidden" />
{{ if .Site.Menus.main }}
<div class="cursor-pointer hover:text-primary-600 dark:hover:text-primary-400"> <div class="cursor-pointer hover:text-primary-600 dark:hover:text-primary-400">
{{ partial "icon.html" "bars" }} {{ partial "icon.html" "bars" }}
</div> </div>
@ -104,13 +105,11 @@
"xmark" }}</span> "xmark" }}</span>
</li> </li>
{{ if .Site.Menus.main }}
{{ range .Site.Menus.main }} {{ range .Site.Menus.main }}
{{ partial "header/header-mobile-option.html" . }} {{ partial "header/header-mobile-option.html" . }}
{{ end }} {{ end }}
{{ end }}
</ul> </ul>
{{ if .Site.Menus.subnavigation }} {{ if .Site.Menus.subnavigation }}
@ -137,6 +136,7 @@
</ul> </ul>
{{ end }} {{ end }}
{{ end }}
</div> </div>
</label> </label>