templates/blog/index_content.html.twig line 1

Open in your IDE?
  1. <div class="blog__list">
  2.     {% for post in posts %}
  3.         <div class="blog__entry">
  4.             <a href="{{ path('blog_post', {slug: post.slug}) }}" class="entry__lnk"></a>
  5.             <img src="{{ vich_uploader_asset(post, 'posterImageFile') }}" alt="{{ post.title }}">
  6.             <div class="entry__info">
  7.                 <div class="entry__top">
  8.                     <div class="entry__date">{{ post.createdAt|date('d.m.Y') }}</div>
  9.                     <div class="entry__tags">
  10.                         {% for tag in post.tags %}
  11.                             <a href="{{ path('blog_tag', {slug: tag.slug}) }}" class="tags__lnk">#{{ tag.name }}</a>
  12.                         {% endfor %}
  13.                     </div>
  14.                 </div>
  15.                 <div class="entry__title">{{ post.title }}</div>
  16.                 <p>{{ post.shortDescription }}</p>
  17.             </div>
  18.         </div>
  19.     {% endfor %}
  20. </div>
  21. {% if current_page < page_count %}
  22. <div class="blog__more-btn">
  23.     <a href="{{ next_page_url }}" data-method="post" class="btn btn_blue btn-load">Загрузить еще</a>
  24. </div>
  25. {% endif %}