{% load wagtailcore_tags %} {% load wagtailroutablepage_tags %} {% load waggylabs_filters %} {% if value.show_categories_tags %}
{% if value.header or value.header_icon %}
{% if value.header_icon_location == 'end' %}

{{ value.header }} {% if value.header_icon|is_icon %}{% endif %}

{% else %}

{% if value.header_icon|is_icon %}{% endif %} {{ value.header }}

{% endif %}
{% endif %} {% if post_list_page %}
{% if value.show_categories and page.post_categories.count > 0 %} {% if value.show_header %}
{{ value.categories_header }}
{% endif %}
{% for category in page.post_categories.all %} {{ category.post_category.name|markdown|safe }} {% endfor %}
{% endif %} {% if value.show_tags and page.tags.count > 0 %} {% if value.show_header %}
{{ value.tags_header }}
{% endif %}
{% for tag in page.tags.all %} {{ tag }} {% endfor %}
{% endif %}
{% endif %}
{% endif %} {% if value.show_sibling_posts %}
{% if previous_post %}
{% if value.previous_post.header or value.previous_post.header_icon %}
{% if value.previous_post.header_icon_location == 'end' %} {{ value.previous_post.header }} {% if value.previous_post.header_icon|is_icon %}{% endif %} {% else %} {% if value.previous_post.header_icon|is_icon %}{% endif %} {{ value.previous_post.header }} {% endif %}
{% endif %}
{% endif %}
{% if next_post %}
{% if value.next_post.header or value.next_post.header_icon %}
{% if value.next_post.header_icon_location == 'end' %} {{ value.next_post.header }} {% if value.next_post.header_icon|is_icon %}{% endif %} {% else %} {% if value.next_post.header_icon|is_icon %}{% endif %} {{ value.next_post.header }} {% endif %}
{% endif %}
{% endif %}
{% endif %}