{% extends "base.html" %} {% load wagtailcore_tags i18n %} {% block title %}{% if search_results %}{% trans "Search results" %}{% else %}{% trans "Search" %}{% endif %}{% endblock %} {% block content %}

Search results

{% if search_results %}

{% blocktrans with search_query=search_query %}You searched for “{{ search_query }}”{% endblocktrans %}

    {% for result in search_results %}
  • {% if result.specific.content_type.model == "blogpage" %} {% trans "Blog post:" %} {% elif result.specific.content_type.model == "locationpage" %} {% trans "Location:" %} {% else %} {% trans "Bread" %} {% endif %} {{ result.specific }}

    {% if result.specific.search_description %}{{ result.specific.search_description|safe }}{% endif %}
  • {% endfor %}
{% elif search_query %} {% trans "No results found" %} {% else %} {% trans "You didn’t search for anything!" %} {% endif %}
{% endblock content %}