{% extends "page/titled/default.html.twig" %}

{% block body %}
    {% for post in pager %}
        {% if not loop.first %}
            <hr class="col-12">
        {% endif %}

        {{ include('page/post/_post.html.twig', {post: post}) }}
    {% endfor %}

    {% if pager.getPaginationData.pageCount > 1 %}
        <div class="col-12">
            <div class="body">
                <div class="pager align-right">
                    {% block pager %}
                        {{ include('module/_pager.html.twig', {
                            route: _node.routeName,
                            routeParams: {_domain: _domain},
                            pages: pager.paginationData.pageCount,
                            currentPage: pager.paginationData.current
                        }) }}
                    {% endblock %}
                </div>
            </div>
        </div>
    {% endif %}
{% endblock %}
