{% set urlPost = "#{baseUrl}/articolo/#{a.slug}" %}
<!-- Post Modern-->
<article class="post post-modern post-modern-classic">
<!-- Post media-->
<div class="post-media">
<a class="link-image" href="{{ urlPost }}">
<img class="img-responsive img-cover" width="370" height="240" src="{{ article.thumbnail }}" alt="{{ article.title }}" />
</a>
</div>
<!-- Post content-->
<div class="post-content text-left">
<!-- Post Title-->
<div class="post-title offset-top-8">
<h5 class="font-weight-bold">
<a href="{{ urlPost }}">{{ article.title }}</a>
</h5>
</div>
<ul class="list-inline list-inline-dashed">
<li>{{ article.datetime }}</li>
{% if false %}<li><a class="text-primary" href="#">News</a></li>{% endif %}
</ul>
<!-- Post Body-->
<div class="post-body">{{ article.excerpt|raw }}</div>
{% if article.category|length > 0 %}
<div class="tags group group-sm">
{% for cat in article.category %}
<a class="btn-tag btn {% if idCategory is defined and idCategory == cat.id %}btn-primary{% else %}btn-default{% endif %}"
href="{{ baseUrl }}/notizie/categoria/{{ cat.id }}">{{ cat.name }}</a>
{% endfor %}
</div>
{% endif %}
</div>
</article>