{% extends "@templates/"~template~"/view/base.html.twig" %}

{% block meta %}{{ getMeta(category)|raw }}{% endblock %}

{% block content %}
<section class="article">
    <div class="grid-container">
        <h1>{{ category is not null ? category.name : "Aktualności" }}</h1>
        <div>
            {% for News in news %}
                <div class="news">
                    <div class="title">{{ News.title }}</div>
                    <div class="desc">{{ News.shortcut }}</div>
                    <div class="link"><a href="{{ url('wi_front_news_show', {'id': News.id, 'slug': slugify(News.title)}) }}">Zobacz więcej...</a></div>
                </div>
            {% endfor %}
            <div class="navigation">
                {{ knp_pagination_render(news, '@KnpPaginator/Pagination/sliding.html.twig') }}
            </div>
        </div>
    </div>
</section>
{% endblock %}
