Skip to content

Commit

Permalink
fix: when search.provdier is false, search button is still exist
Browse files Browse the repository at this point in the history
  • Loading branch information
kitian616 committed Jan 7, 2019
1 parent 7b6d157 commit 4517bac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
<li class="navigation__link"><a href="{{ _nav_url }}">{%- if _item.title -%}{{ _item.title }}{%- else -%}{{ __return }}{%- endif -%}</a></li>
{%- endif -%}
{%- endfor -%}
<li><button class="button button--secondary button--circle search-button js-search-toggle"><i class="fas fa-search"></i></button></li>
{%- if site.search.provider -%}
<li><button class="button button--secondary button--circle search-button js-search-toggle"><i class="fas fa-search"></i></button></li>
{%- endif -%}
</ul>
</nav>
{%- endif -%}
Expand Down

0 comments on commit 4517bac

Please sign in to comment.