Skip to content

Commit fcb7d01

Browse files
authored
Merge pull request #9036 from Blendify/patch-3
HTML Templates: Add blocks to search page
2 parents 8e258c0 + 2118c97 commit fcb7d01

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

sphinx/themes/basic/search.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,29 @@
2020
{% endblock %}
2121
{% block body %}
2222
<h1 id="search-documentation">{{ _('Search') }}</h1>
23+
{% block scriptwarning %}
2324
<div id="fallback" class="admonition warning">
2425
<script>$('#fallback').hide();</script>
2526
<p>
2627
{% trans %}Please activate JavaScript to enable the search
2728
functionality.{% endtrans %}
2829
</p>
2930
</div>
31+
{% endblock %}
32+
{% block searchtext %}
3033
<p>
3134
{% trans %}Searching for multiple words only shows matches that contain
3235
all words.{% endtrans %}
3336
</p>
37+
{% endblock %}
38+
{% block searchbox %}
3439
<form action="" method="get">
3540
<input type="text" name="q" aria-labelledby="search-documentation" value="" />
3641
<input type="submit" value="{{ _('search') }}" />
3742
<span id="search-progress" style="padding-left: 10px"></span>
3843
</form>
44+
{% endblock %}
45+
{% block searchresults %}
3946
{% if search_performed %}
4047
<h2>{{ _('Search Results') }}</h2>
4148
{% if not search_results %}
@@ -53,4 +60,5 @@ <h2>{{ _('Search Results') }}</h2>
5360
</ul>
5461
{% endif %}
5562
</div>
63+
{% endblock %}
5664
{% endblock %}

0 commit comments

Comments
 (0)