mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-17 18:22:33 +00:00
Fix: search button is invisible when the menu is empty (#42)
This commit is contained in:
parent
6147217b44
commit
ab2cbd4157
@ -1,6 +1,6 @@
|
||||
{% import 'menu-item.njk' as menu_item with context %}
|
||||
|
||||
{%- if theme.menu %}
|
||||
{%- if theme.menu or theme.algolia_search.enable or theme.local_search.enable %}
|
||||
<nav class="site-nav">
|
||||
<ul id="menu" class="main-menu menu">
|
||||
{%- for name, path in theme.menu %}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user