Skip to content

Commit ab2cbd4

Browse files
authored
Fix: search button is invisible when the menu is empty (iissnan#42)
1 parent 6147217 commit ab2cbd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layout/_partials/header/menu.njk

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% import 'menu-item.njk' as menu_item with context %}
22

3-
{%- if theme.menu %}
3+
{%- if theme.menu or theme.algolia_search.enable or theme.local_search.enable %}
44
<nav class="site-nav">
55
<ul id="menu" class="main-menu menu">
66
{%- for name, path in theme.menu %}

0 commit comments

Comments
 (0)