aboutsummaryrefslogtreecommitdiff
path: root/.themes/classic
diff options
context:
space:
mode:
authorTim Gray <tgray@125px.com>2011-12-11 16:15:39 -0500
committerTim Gray <tgray@125px.com>2011-12-11 16:15:39 -0500
commit2c1ec7434b3a5066d81f694d60e1d60c600e1012 (patch)
tree6c3e1788391e861bef43805f46af1ec50f2145bd /.themes/classic
parent39ec55b6057257a2d2fba4ca25eb58e5c5ef234c (diff)
downloadmy_new_personal_website-2c1ec7434b3a5066d81f694d60e1d60c600e1012.tar.xz
my_new_personal_website-2c1ec7434b3a5066d81f694d60e1d60c600e1012.zip
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.
Diffstat (limited to '.themes/classic')
-rw-r--r--.themes/classic/source/_includes/navigation.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/.themes/classic/source/_includes/navigation.html b/.themes/classic/source/_includes/navigation.html
index 9b87017a..2f0e6280 100644
--- a/.themes/classic/source/_includes/navigation.html
+++ b/.themes/classic/source/_includes/navigation.html
@@ -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 %}