{%- trans_default_domain 'MDLContentBundle' -%}
{%- set fragment = fragment is defined ? fragment : false -%}
<!-- .news -->
{%- set blogPost = post.translate() -%}
<div class="blog-post row news">
<div class="col-md-12">
<h3 class="blog-title">
<a href="{{ path('mdl_public_blog_view', { 'slug': blogPost.slug }) }}">{{ blogPost.title }}</a>
</h3>
<p class="date">{{ blogPost.createdAt|date }}</p>
</div>
{% set featuredMedia = post.featured %}
{% if featuredMedia and featuredMedia.url -%}
<div class="col-md-4">
<a href="{{ path('mdl_public_blog_view', { 'slug': blogPost.slug }) }}">
<img src="{{ asset(featuredMedia.url) | imagine_filter('blog_thumbnail') }}" class="img-fluid" alt="{{ featuredMedia.title }}" />
</a>
</div>
{%- endif %}
<div class="col-md-{{ featuredMedia ? '8' : '12' }}">
<div class="excerpt">
{{ blogPost.excerpt|raw }}
</div>
<a class="readmore" href="{{ path('mdl_public_blog_view', {slug: blogPost.slug}) }}">{{ 'blog.readmore'|trans }}</a>
</div>
</div>
<hr class="mb-4" />
<!-- /.news -->