{% 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 %}
You searched{% if search_query %} for “{{ search_query }}”{% endif %}, {{ search_results|length }} result{{ search_results|length|pluralize }} found.
{% if result.specific.content_type.model == "blogpage" %} Blog Post {% elif result.specific.content_type.model == "locationpage" %} Location {% else %} Bread {% endif %}
{% if result.specific.search_description %}{{ result.specific.search_description|richtext }}{% endif %}
You searched for “{{ search_query }}”, {{ search_promotions|length }} result{{ search_promotions|length|pluralize }} found.
{% if search_promotion.page.specific.content_type.model == "blogpage" %} Blog Post {% elif search_promotion.page.specific.content_type.model == "locationpage" %} Location {% else %} Bread {% endif %}
{% if search_promotion.page.specific.search_description %}{{ search_promotion.page.specific.search_description|richtext }}{% endif %}
No results found for “{{ search_query }}”.
{% endif %} {% else %}You didn't search for anything!
{% endif %}