{% extends "richie/fullwidth.html" %} {% load category_tags cms_tags extra_tags i18n pagination_tags %} {% block subheader_content %}

{{ current_page.get_title }}

{% endblock subheader_content %} {% block content %}{% spaceless %} {% get_related_category_pages current_page.get_child_pages as categories %} {% if categories %}

{% trans "Categories" %}

{% for category in categories %} {% include "courses/cms/fragment_category_glimpse.html" with category_variant="tag" %} {% endfor %}
{% endif %}
{% with sorted_pages=current_page.get_child_pages|order_by:"-publication_date" %} {% if current_page.publisher_is_draft %} {% autopaginate sorted_pages 20 as object_list %} {% else %} {% autopaginate sorted_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 header_level=2 %} {% endif %} {% empty %}

{% trans "No associated blogposts" %}

{% endfor %} {% if object_list %} {% include "richie/pagination.html" %} {% endif %} {% endwith %}
{% endspaceless %}{% endblock content %}