{% endwith %}
{% endfor %}
{% for related in related_pages %}
{# a related object links to the original page (related.source_page) and a related one (related.page) #}
{% if related.page.live %}
{% with specific_related_page=related.page.specific %}
{% include "includes/relatedcontent_card.html" with page=specific_related_page %}
{% endwith %}
{% else %}
{% include "includes/relatedcontent_card.html" with page=related %}
{% endif %}
{% endfor %}