Skip to content

Commit

Permalink
Bug: Should not show search icon when swiftype key is not set. hexojs…
Browse files Browse the repository at this point in the history
  • Loading branch information
iissnan committed Aug 4, 2015
1 parent a57b4ce commit 6c11ba8
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 @@ -18,7 +18,7 @@
</div>

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

{% if theme.menu %}
<ul id="menu" class="menu {{ hasSearch and 'menu-left' }}">
Expand All @@ -33,7 +33,7 @@
{% endfor %}

{# Search icon for default scheme #}
{% if not theme.scheme %}
{% if not theme.scheme and theme.swiftype_key %}
<li class="menu-item menu-item-search">
<a href="#" class="st-search-show-outputs">
<i class="menu-item-icon icon-next-search"></i> <br />
Expand Down

0 comments on commit 6c11ba8

Please sign in to comment.