{% extends "index.html" %}
{% import "post_macros.html" as post_macros %}

{% block content -%}

            {% for page in paginator.pages %}
            {{ post_macros::title(page=page) }}
            <div class="slug">
                <p>{{ post_macros::polish(content=page.description) }} </p>
                <p class="readmore"> <a style="margin-right:2rem;" href="{{ page.permalink }}"> Lire la suite... </a></p>
            </div>

            {% endfor %}

            <nav class="pagination center">
                <div class="pagination center">
                    <div class="c-pagination">
                        {% if paginator.previous -%}
                        <a href="{{ paginator.previous }}">Plus récent</a>
                        {%- endif %}
                    </div>
                    <div class="pagination_older">
                        {% if paginator.next -%}
                        <a href="{{ paginator.next }}">Plus vieux</a>
                        {%- endif %}
                    </div>

                <span>Page {{ paginator.current_index }} sur {{ paginator.number_pagers }}</span>
                </div>
            </nav>

            {%- endblock content %}
