fix: fix hamburger menu

pull/725/head
Wen Junhua 2023-11-27 23:15:51 +08:00
parent c75289eea7
commit 8355a69cba
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
{{/* Hamburger menu */}} {{/* Hamburger menu */}}
{{ if or .Site.Menus.main (.Site.Params.enableSearch | default false) }} {{ if or .Site.Menus.main (.Site.Params.enableSearch | default false) }}
<label id="menu-button" for="menu-controller" class="block"> <label id="menu-button" for="menu-controller" class="block">
{{ partial "header/hamburger/hamburger-content.html" }} {{ partial "header/hamburger/hamburger-content.html" . }}
</label> </label>
{{ end }} {{ end }}
</nav> </nav>

View File

@ -7,7 +7,7 @@
{{ if or .Site.Menus.main (.Site.Params.enableSearch | default false) }} {{ if or .Site.Menus.main (.Site.Params.enableSearch | default false) }}
<label id="menu-button" for="menu-controller" class="block sm:hidden"> <label id="menu-button" for="menu-controller" class="block sm:hidden">
{{/* Hamburger menu */}} {{/* Hamburger menu */}}
{{ partial "header/hamburger/hamburger-content.html" }} {{ partial "header/hamburger/hamburger-content.html" . }}
</label> </label>
{{/* Basic menu */}} {{/* Basic menu */}}
<ul class="flex-row hidden list-none text-end sm:flex"> <ul class="flex-row hidden list-none text-end sm:flex">