{% extends layout('posts') %}

{% block content %}
    <div id="posts">
        <div class="container">

            {% set posts = entries('posts').recent() %}

            {% if request_get('type') %}
                {% set posts = posts.type(request_get('type')) %}
            {% endif %}

            {% set posts = posts.paginate() %}

            {% include "anomaly.module.posts::posts/partials/posts" with {"posts": posts} %}

            {{ posts.links|raw }}

        </div>
    </div>
{% endblock %}
