{% extends "base" %}
{% import "macros" as macros %}

{% block title %}
{{ 'Articles tagged "{{ tag }}"' | _(tag=tag.tag) }}
{% endblock title %}

{% block content %}
    <h1>{{ 'Articles tagged "{{ tag }}"' | _(tag=tag.tag) }}</h1>

    <div class="cards">
        {% for article in articles %}
            {{ macros::post_card(article=article) }}
        {% endfor %}
    </div>
    {{ macros::paginate(page=page, total=n_pages) }}
{% endblock content %}
