Skip to content

Commit

Permalink
Search box can be toggled off.
Browse files Browse the repository at this point in the history
By leaving 'simple_search' parameter blank in the _config.yml file, the
search form in the navigation.html include is omitted.  This lets you
put your own custom search form in the custom/navigation.html file.
  • Loading branch information
tgray committed Dec 11, 2011
1 parent 39ec55b commit 2c1ec74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .themes/classic/source/_includes/navigation.html
Expand Up @@ -4,10 +4,12 @@
<li><a href="{{ site.subscribe_email }}" rel="subscribe-email" title="subscribe via email">Email</a></li>
{% endif %}
</ul>
{% if site.simple_search %}
<form action="{{ site.simple_search }}" method="get">
<fieldset role="search">
<input type="hidden" name="q" value="site:{{ site.url | shorthand_url }}" />
<input class="search" type="text" name="q" results="0" placeholder="Search"/>
</fieldset>
</form>
{% endif %}
{% include custom/navigation.html %}

0 comments on commit 2c1ec74

Please sign in to comment.