templates/front/postsList.html.twig line 1

Open in your IDE?
  1. <div class="posts row">
  2.     {% for key, post in posts %}
  3.         <div class="post col-md-6 col-sm-8 col-11 col-lg-4 mab-50" data-aos="fade-in"   data-aos-duration="800">
  4.             <div class="dbangk pointer pa-30" data-link>
  5.                 <div class="bgp-center bgs-cover w-100 he-320-xl he-300-lg he-270-sm he-250 mab-25"
  6.                      style="background-image:url({{ asset(vich_uploader_asset(post, 'postFile')) | imagine_filter('medium') }})">
  7.                 </div>
  8.                 <h2 class="hdveuv mab-15 wqphyy">
  9.                     <a href="{{ path('front_post', {'slug':post.slug}) }}">
  10.                         {{ post.title }}
  11.                     </a>
  12.                 </h2>
  13.                 <div class="content pmab0">
  14.                     <div class="overflow-hidden he-70 position-relative">
  15.                         <div>
  16.                             {{ post.introRaw }}
  17.                         </div>
  18.                         <div class="position-absolute hep-100 b-0 w-100"
  19.                              style="background: rgb(255,255,255);background: linear-gradient(0deg, rgba(255,255,255,1) 20%, rgba(255,255,255,0) 100%);"></div>
  20.                     </div>
  21.                 </div>
  22.             </div>
  23.         </div>
  24.     {% endfor %}
  25. </div>
  26. {% if landing is not defined %}
  27.     <div class="text-center mat-0 mab-30  {% if not ( posts.getTotalItemCount > 12) %} d-none {% endif %}">
  28.         <div class='triggerPost btn btn1'>
  29.             <div class="btn-text">
  30.                 {{ "posts_list.see_more.btn"|trans }}
  31.             </div>
  32.         </div>
  33.     </div>
  34.     {{ knp_pagination_render(posts) }}
  35. {% endif %}