{% extends "wagtail_design_system/base.html" %}

{% load static design_system_tags wagtailcore_tags wagtailimages_tags i18n %}

{% block content %}
    {% include "wagtail_design_system/heading.html" %}
    <div class="design-system-container design-system-pt-4w">
        {% include "wagtail_design_system/breadcrumbs.html" %}
        {% if not page.header_with_title %}<h1>{{ page.title }}</h1>{% endif %}
    </div>

    {% include "wagtail_design_system/messages.html" %}

    {% include "wagtail_design_system/blocks_stream.html" with stream=page.body %}

    {% block inner_content %}
    {% endblock inner_content %}

    <div class="design-system-container design-system-my-6w">
        {% for tag in page.tags.all|dictsort:"slug" %}
            <a class="design-system-tag" target="_self" href="{% url 'global_tag' tag.slug %}">{{ tag }}</a>
        {% endfor %}
    </div>
{% endblock content %}
