Browse code

Search box can be toggled off.

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.

Tim Gray authored on 11/12/2011 at 21:15:39
Showing 1 changed files
... ...
@@ -4,10 +4,12 @@
4 4
     <li><a href="{{ site.subscribe_email }}" rel="subscribe-email" title="subscribe via email">Email</a></li>
5 5
   {% endif %}
6 6
 </ul>
7
+  {% if site.simple_search %}
7 8
 <form action="{{ site.simple_search }}" method="get">
8 9
   <fieldset role="search">
9 10
     <input type="hidden" name="q" value="site:{{ site.url | shorthand_url }}" />
10 11
     <input class="search" type="text" name="q" results="0" placeholder="Search"/>
11 12
   </fieldset>
12 13
 </form>
14
+  {% endif %}
13 15
 {% include custom/navigation.html %}