{% extends "base.html" %} {% load wagtailcore_tags %} {% block title %}Recherche{% endblock %} {% block content %}
{% include "base/inc/search_form.html" with query=search_query %}

{% if standard_page_results %}
{% for result in standard_page_results %}
{% include "base/inc/search_result_card.html" %}
{% endfor %}
{% endif %} {% if articles_results %} {% regroup articles_results by category as categories %} {% for category in categories %}

{{ category.grouper }}

{% for result in category.list %}
{% include "base/inc/search_result_card.html" %}
{% endfor %}
{% endfor %} {% endif %} {% if not search_query %}

Il semble que vous n'avez rien entré dans la barre de recherche.

{% elif not standard_page_results and not articles_results %}

Aucun résultat pour "{{ search_query }}".

{% endif %}
{% endblock %}