{% extends "richie/fullwidth.html" %} {% load cms_tags i18n pagination_tags %} {% block breadcrumbs %}{% endblock breadcrumbs %} {% block content %}

{{ current_page.get_title }}

{% if current_page.publisher_is_draft %} {% autopaginate current_page.get_child_pages 20 as object_list %} {% else %} {% autopaginate current_page.get_child_pages.published.distinct 20 as object_list %} {% endif %} {% for page in object_list %} {% if page.blogpost %} {% include "courses/cms/fragment_blogpost_glimpse.html" with blogpost=page.blogpost %} {% endif %} {% empty %}

{% trans "No associated blogposts" %}

{% endfor %} {% if object_list %} {% paginate using "richie/pagination.html" %} {% endif %}
{% endblock content %}