Theme: Allow to remove the search box

This commit is contained in:
Daniel Molkentin
2014-06-25 13:53:14 +02:00
parent d3c6ba4399
commit 6ea9328fdb
2 changed files with 4 additions and 0 deletions

View File

@@ -129,10 +129,12 @@
<h1><a href="{{ pathto(master_doc) }}">{{ project|e }}</a></h1>
</div>
<div class="col-md-5 col-md-offset-1">
{% if theme_show_search %}
<form class="headersearch" style="margin-bottom:-3px;" action="{{ pathto('search') }}" method="get">
<input type="text" value="" name="q" id="q" class="form-control" />
<button class="btn btn-default" type="submit" id="searchsubmit">Search</button>
</form>
{% endif %}
</div>
</div>
{% block sidebartoc %}

View File

@@ -56,3 +56,5 @@ bootswatch_theme = ""
# Switch Bootstrap version?
# Values: "3" (default) or "2"
bootstrap_version = 3
show_search = true