{% extends "base.html" %} {% load wagtailcore_tags wagtailimages_tags wagtailsearchpromotions_tags %} {% block title %}Search{% if search_results %} results{% endif %}{% if search_query %} for “{{ search_query }}”{% endif %}{% endblock %} {% block search_description %}Search{% if search_results %} results{% endif %}{% if search_query %} for “{{ search_query }}”{% endif %}{% endblock %} {% block body_class %}template-search-results{% endblock %} {% block content %}

Search results

{% if search_results %}

You searched{% if search_query %} for “{{ search_query }}”{% endif %}, {{ search_results|length }} result{{ search_results|length|pluralize }} found.

{% elif search_query %} {% get_search_promotions search_query as search_promotions %} {% if search_promotions %}

You searched for “{{ search_query }}”, {{ search_promotions|length }} result{{ search_promotions|length|pluralize }} found.

{% else %}

No results found for “{{ search_query }}”.

{% endif %} {% else %}

You didn't search for anything!

{% endif %}
{% endblock content %}