templates/Default/articles.html.twig line 1

Open in your IDE?
  1. {% set title = cat ? cat.name : 'Actualités' %}
  2. {% set subtitle = cat ? "Publications" %}
  3. {% set menu = 'articles' %}
  4. {% import "Default/macros.html.twig" as macros %}
  5. {% extends 'Default/base.html.twig' %}
  6. {% block content %}
  7. <div class='gpadding {{desktop("vt-20-in")}} {{mobile("vt-30-in")}} '>
  8.     <div class='articles {{desktop("flex row space wrap")}} {{mobile("")}}'>
  9.         {% for o in articles %}
  10.         {{macros.article(o)}}
  11.         {% endfor %}
  12.         {% if isDesktop() and (articles|length % 3) %}
  13.         {% for o in 1..(3 - articles|length % 3) %}
  14.         <i class="third-20"></i>
  15.         {% endfor %}
  16.         {% endif %}
  17.     </div>
  18.     <div class='{{desktop("")}}'>
  19.     {% include ("Default/counter.html.twig") with {expanded:true} %}
  20.     </div>
  21. </div>
  22. {% endblock %}