{% extends '/layouts/default.twig' %}

{% block site_body %}
    {% include '/partials/page-header.twig' with {
        title: 'Latest News'
    } %}

    <div class="container">
        <div class="row">
            <div class="col-12 col-lg-4 order-1 order-lg-0">
                {% include '/partials/blog-sidebar.twig' with {
                    position: 'start'
                } %}
            </div>
            <div class="col-12 col-lg-8">
                <div class="block">
                    <div class="posts-view">
                        <div class="posts-view__list posts-list posts-list--layout--classic">
                            <div class="posts-list__body">
                                {% for post in posts %}
                                    <div class="posts-list__item">
                                        {% include '/partials/post-card.twig' with {
                                            post: post,
                                            layout: 'grid-lg'
                                        } only %}
                                    </div>
                                {% endfor %}
                            </div>
                        </div>
                        <div class="posts-view__pagination">
                            {% include '/partials/pagination.twig' %}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
{% endblock %}