{% load i18n highlight %} {% for result in page_obj.object_list %}
  • {% if result.text %}

    {{ result.title }} {% highlight result.text with request.GET.q %}

    {% else %} {{ result.title }} {% endif %}
  • {% empty %} {% if request.GET.q %}
  • {% trans "No results found for" %} "{{ request.GET.q }}"
  • {% endif %} {% endfor %}