{% extends '/client/common/base.html.twig' %}
{% block title %}Home{% endblock %}
{% block body %}
<div class="uk-container uk-container-large uk-margin-large uk-margin-large-top">
<h1>{{ entry.title }}</h1>
<div>
<div class="uk-card">
<div class="uk-card-media-top">
{% if (entry.imageIntro.imageName) %}
<picture>
<source srcset="{{ vich_uploader_asset(entry.imageFull, 'imageFile') | imagine_filter('blog_large_webp') }}" type="image/webp">
<source srcset="{{ vich_uploader_asset(entry.imageFull, 'imageFile') | imagine_filter('blog_large') }}" type="image/jpeg">
<img src="{{ vich_uploader_asset(entry.imageFull, 'imageFile') | imagine_filter('blog_large') }}" alt="{{ entry.title }}">
</picture>
{% endif %}
</div>
<div class="uk-card-body">
<div class="uk-text-meta uk-margin-bottom">
{{ 'Created at'|trans }}: {{ entry.createdAt|date("d/m/Y") }},
{{ 'Posted at'|trans }}:
{% for category in entry.blogCategories %}
<a href="{{ path('client_blog_category_article_list', {'slug': category.slug }) }}">{{ category.title }}</a>
{% if not (loop.last) %}, {% endif %}
{% endfor %}
</div>
<div>{{ entry.content|raw }}</div>
</div>
</div>
</div>
</div>
{% endblock %}