<section class="std-section exhibitions">
<div class="container">
<div class="exhibitions__heading">
{% if title %}
<h1 class="h3">{{ title }}</h1>
{% endif %}
{% if link %}
<a class="exhibitions__more" href="{{ link }}">{{ link_name }}</a>
{% endif %}
</div>
<div class="exhibitions__container">
{% for news in news_list %}
<div class="exhibitions__item">
<a href="{{ path('news_show', {'categoryAlias': news.category.alias, 'id': news.id}) }}"></a>
{% if news.picture %}
<div class="exhibitions__image">
<img src="{{ asset('assets/front/img/empty.svg') }}" data-src="{{ news.picture.url }}" alt="{{ news.name|escape }}">
</div>
{% endif %}
<div class="exhibitions__wrapper">
<h3>{{ news.name }}</h3>
<span>{{ news.annotation|raw }}</span>
<a class="exhibitions__further" href="{{ path('news_show', {'categoryAlias': news.category.alias, 'id': news.id}) }}">Читать далее</a>
</div>
</div>
{% endfor %}
</div>
</div>
<script data-defer=".exhibitions">
var requireOnDefer = function() {
function callback() {
require(['assets/front/js/application/exhibitions']);
window.removeEventListener('.exhibitions', callback);
}
window.addEventListener('.exhibitions', callback);
}
requireOnDefer();
require(['css!assets/front/css/application/exhibitions']);
</script>
</section>