templates/posts/posts_list.html.twig line 1

Open in your IDE?
  1. {% extends 'posts/blog_tpl.html.twig' %}
  2. {% set page_background = 'blog.jpg' %}
  3. {% block post_content %}
  4.     <div class="row">
  5.         {% for content in collection %}
  6.         <div class="col-md-6">
  7.             <div class="card-grid-style-4">
  8.                 <div class="grid-4-img mb-20">
  9.                     <a href="{{ path('post_show', {"slug":content.slug}) }}">
  10.                         <img src="{{ asset(content.thumbnail)|imagine_filter('thumbnail_medium') }}" alt="{{ content.title }}">
  11.                     </a>
  12.                 </div>
  13.                 <a class="text-heading-4" href="{{ path('post_show', {"slug":content.slug}) }}">{{ content.title }}</a>
  14.                 <p class="text-body-text color-gray-500">{{ content.summary|u.truncate(200,true) }}</p>
  15.                 <div class="blog-img-user">
  16.                     <div class="img-user img-user-round"><img src="{{ asset('themes/castine/assets/imgs/page/blog/2/user-1.png') }}" alt="{{ content.title }}"></div>
  17.                     <h4 class="text-heading-6 color-gray-900">Jenny Wilson</h4>
  18.                     <p class="text-body-small color-gray-500">{{ content.datePublished|date("j F Y") }}</p>
  19.                 </div>
  20.             </div>
  21.         </div>
  22.         {% endfor %}
  23.     </div>
  24. {% endblock %}