{% extends "@templates/"~template~"/view/base.html.twig" %}
{% set displaySlider = false %}
{% block meta %}{{ getMeta(news)|raw }}{% endblock %}

{% block breadcrumbs %}
    <div class="padding80">{{ wo_render_breadcrumbs() }}</div>
{% endblock %}

{% block content %}
    <div class="grid-container blog-container">
        <div class="grid-x grid-margin-x align-center">
            <div class="cell">
                <img class="singlePostImg" src="{{asset(news.image())  }}" alt="">

                <div class="singlePostContent">
                    <h3>{{ news.title }}</h3>
                    <div class="date">Opublikowany - {{ news.dateOfPublication|date("d.m.Y") }}</div>
                    <div class="categories">
                        <span> Kategorie: </span>
                        {% for category in news.categories %}
                            <a href="{{ getCanonical(category) }}">{{ category.name }}</a>,
                        {% endfor %}
                    </div>
                    <article class="fullContent">{{ news.content|raw }}</article>
                </div>

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