Fix: search button is invisible when the menu is empty (#42)

This commit is contained in:
Kyun 2020-07-03 10:47:04 +08:00 committed by GitHub
parent 6147217b44
commit ab2cbd4157
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 %}