templates/front/tuto/tutos.html.twig line 1

Open in your IDE?
  1. {% extends "front/base.html.twig" %}
  2. {% block title %}
  3.     {{ 'seo.tuto_title' | trans }}
  4. {% endblock %}
  5. {% block seo %}
  6.     <meta name="description" content="{{ 'seo.tuto_description' | trans }}">
  7. {% endblock %}
  8. {% block body %}
  9.     <section class="first-section fullheight tutorials-section">
  10.         <div class="container">
  11.             <h2 class="section-title-underline mb-5">{{ 'tuto.page_title' | trans }}</h2>
  12.             {% for info in infos %}
  13.             {% if info[1] | length > 0 %}
  14.                     
  15.                 <h2 class="category-title">{{ ("tuto.categories." ~ info[0].slug) | trans }}</h2>
  16.                 <div class="tutos-grid">
  17.                     {% for tuto in info[1] %}
  18.                     <a class="tuto-card" href="{{ path('tuto_detail', {'slug' : tuto.slug}) }}">
  19.                         <div class="cover">
  20.                             <img loading="lazy" src="{{ asset('images/tuto/' ~ tuto.photo) }}" alt="{{ tuto.title }}">
  21.                         </div>
  22.                         <h3 class="title">{{ tuto.title }}</h3>
  23.                     </a>
  24.                     {% endfor %}
  25.                     
  26.                 </div>
  27.             {% endif %}
  28.             {% endfor %}
  29.         </div>
  30.     </section>
  31. {% endblock %}