Skip to content

Commit

Permalink
use theme.local_search.enable instead of config.search
Browse files Browse the repository at this point in the history
  • Loading branch information
Acris committed Feb 20, 2017
1 parent ce648e3 commit a682111
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layout/_partials/header.swig
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</div>

<nav class="site-nav">
{% set hasSearch = theme.swiftype_key || theme.algolia_search.enable || theme.tinysou_Key || config.search %}
{% set hasSearch = theme.swiftype_key || theme.algolia_search.enable || theme.tinysou_Key || theme.local_search.enable %}

{% if theme.menu %}
<ul id="menu" class="menu">
Expand All @@ -53,7 +53,7 @@
<li class="menu-item menu-item-search">
{% if theme.swiftype_key %}
<a href="javascript:;" class="st-search-show-outputs">
{% elseif config.search || theme.algolia_search.enable %}
{% elseif theme.local_search.enable || theme.algolia_search.enable %}
<a href="javascript:;" class="popup-trigger">
{% endif %}
{% if theme.menu_icons.enable %}
Expand Down

0 comments on commit a682111

Please sign in to comment.