templates/front/postsList.html.twig line 1

Open in your IDE?
  1. <div class="posts justify-content-center-sm row mat-40 {% if (landing is defined and landing) or(postDetail is defined and postDetail) %} list-container  {% endif %}">
  2.     {% for key, post in posts %}
  3.         <div data-aos="fade-left" data-aos-duration="800" data-aos-delay="{{ (loop.index0)*200 }}"
  4.              class="post     {{ (landing is defined and landing) ? 'o-60 o-100-h' }} {% if (landing is defined and landing) or(postDetail is defined and postDetail) %} col-lg-4 {% else %} col-lg-4 col-sm-6 col-10  {% endif %}  mab-75 animate-link"
  5.              data-link>
  6.             <div class="bloc-white overflow-hidden">
  7.                 <img src="{{ asset(vich_uploader_asset(post, 'postFile')) }}"
  8.                      alt="{{ post.title }}" class="img-fit he-320-xl he-280-lg he-220 w-100"/>
  9.                 <div class="pa-43-xl pa-43-lg pa-20-md pa-15 bgc-white">
  10.                     {% if post.postCategory %}
  11.                         <div class='c-9DC771  text-uppercase fs-13 fw-500 mab-15'>
  12.                             {{ post.postCategory.title }}
  13.                         </div>
  14.                     {% endif %}
  15.                     {% set hTag = (((landing is defined and landing) or(postDetail is defined and postDetail)) ? "h4" : "h3") %}
  16.                     <{{ hTag }} class="may-8 fs-18 fw-600 lh2-15 title-post">
  17.                     <a href="{{ path('front_post', {'slug':post.slug}) }}" class="c-204A9A c-204A9A-h">
  18.                         {{ post.title }}
  19.                     </a>
  20.                     </{{ hTag }}>
  21.                     <div class="content-post c-2C3E73 fs-14">
  22.                         {{ post.introRaw|length > 150 ? post.introRaw|slice(0, 150) ~ '...' : post.introRaw }}
  23.                     </div>
  24.                 </div>
  25.             </div>
  26.         </div>
  27.     {% endfor %}
  28. </div>