{% load wagtailcore_tags wagtailimages_tags i18n el_pagination_tags %}
{% block content %}
{% if results %}
{% paginate 10 results as paginated_results %}
{% for page in paginated_results %}
{% with parent_section=page.get_parent_section ancestor=page.get_parent_section.get_ancestors.last %}
{% if ancestor.sectionpage.image %}
{{page.subtitle_highlight|safe}} {{page.body_highlight|safe}} {{page.subtitle}}{{ancestor.title}}
{% else %}
{{parent_section.title}}
{% endif %}
{% if page.title_highlight %}
{{page.title_highlight|safe}}
{% else %}
{{page.title}}
{% endif %}
{% if page.subtitle_highlight or page.body_highlight %}
{% if page.subtitle_highlight %}