Remove unused blocks in the `search.html` template

This commit is contained in:
Adam Turner 2024-01-08 19:47:09 +00:00
parent 959f73fe4b
commit a6b0dbc5b9

View File

@ -45,22 +45,6 @@
</form>
{% endblock %}
{% block searchresults %}
{% if search_performed %}
<h2>{{ _('Search Results') }}</h2>
{% if not search_results %}
<p>{{ _('Your search did not match any documents. Please make sure that all words are spelled correctly and that you\'ve selected enough categories.') }}</p>
{% endif %}
{% endif %}
<div id="search-results">
{% if search_results %}
<ul>
{% for href, caption, context in search_results %}
<li><a href="{{ pathto(item.href) }}">{{ caption }}</a>
<div class="context">{{ context|e }}</div>
</li>
{% endfor %}
</ul>
{% endif %}
</div>
<div id="search-results"></div>
{% endblock %}
{% endblock %}