{% extends "base.html" %}
{% load wagtailcore_tags %}

{% block content %}

    <section class="py-24 sm:py-32 mx-4">
        <div class="mx-auto max-w-7xl px-0 md:px-4 lg:px-8">
            {% if request.GET.tag %}
                <h1>Showing pages tagged "{{ request.GET.tag }}"</h1>
            {% endif %}

            {% for blogpage in blogpages %}

                <p>
                    <strong><a href="{% pageurl blogpage %}">{{ blogpage.title }}</a></strong><br/>
                    <small>Revised: {{ blogpage.latest_revision_created_at }}</small><br/>
                </p>

            {% empty %}
                No pages found with that tag.
            {% endfor %}
        </div>
    </section>

{% endblock %}