{% load wagtailcore_tags %} {% load wagtailroutablepage_tags %} {% load el_pagination_tags %} {% load waggylabs_filters %} {% show_current_number as current_page_number %} {% if value.show_pinned_posts and current_page_number == 1 and value.pinned_posts.count > 0 %} {% if value.pinned_posts_header or value.pinned_posts_icon %} {% if value.pinned_posts_icon_location == 'end' %}

{{ value.pinned_posts_header }} {% if value.pinned_posts_icon|is_icon %}{% endif %}

{% else %}

{% if value.pinned_posts_icon|is_icon %}{% endif %} {{ value.pinned_posts_header }}

{% endif %} {% endif %} {% for post in value.pinned_posts %}

{{ post.title }}

{% include_block post.body with page=post post_list_page=page page_in_list=True %} {% if value.show_scrollspy %}
{% for category in post.post_categories.all %} {{ category.slug }} {% endfor %}
{% endif %}
{% if value.show_footer %} {% endif %}
{% endfor %} {% endif %} {% if value.posts_header or value.posts_icon %} {% if value.posts_icon_location == 'end' %}

{{ value.posts_header }} {% if value.posts_icon|is_icon %}{% endif %}

{% else %}

{% if value.posts_icon|is_icon %}{% endif %} {{ value.posts_header }}

{% endif %} {% endif %} {% paginate value.posts_per_page posts %} {% for post in posts %}

{{ post.title }}

{% include_block post.body with page=post post_list_page=page page_in_list=True %} {% if value.show_scrollspy %}
{% for category in post.post_categories.all %} {{ category.post_category.slug }} {% endfor %}
{% endif %}
{% if value.show_footer %} {% endif %}
{% endfor %} {% get_pages %}