app/Resources/views/blog_post/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block body %}
  3.     <main class="public">
  4.         <div class="section-header">
  5.             <div class="size-container">
  6.                 <span class="icon-square">
  7.                     {{ source('inline/efc-square-icon.svg.twig') }}
  8.                 </span>
  9.                 <h2 class="title-main section-header__title">
  10.                     {{ 'home.blog_title'|trans|desc('CINEMA LOVERS COMMUNITY')}}
  11.                 </h2>
  12.             </div>
  13.         </div>
  14.         <div class="subheader">
  15.             <p class="subheader__title">
  16.                 {{ 'blogpage.subtitle'|trans|desc('Film reviews, events, podcast, challenges and news. A cinema-lovers survival guide with the need-to-knows of European cinema.')}}
  17.             </p>
  18.         </div>
  19.         {% if blogPosts is defined %}
  20.             <div class="public__content">
  21.         <div class="blog">
  22.           {% for post in blogPosts.data %}
  23.             <div class="layout-post__single">
  24.               {{ include('blog_post/_single.html.twig') }}
  25.             </div>
  26.           {% endfor %}
  27.         </div>
  28.         <div class="featured__pagination">
  29.           {% if blogPosts.meta.prev_page %}
  30.             <a class="featured__pagination--link prev" href="{{ path('blog_post_index', { 'page': blogPosts.meta.prev_page }) }}">
  31.               <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="23.3" height="40.35" viewBox="0 0 23.3 40.35">
  32.                 <polyline points="0 20.18 20.17 0 23.3 3.13 6.26 20.18 23.3 37.22 20.17 40.35"/>
  33.               </svg>
  34.               Prev
  35.             </a>
  36.           {% endif %}
  37.           {% if blogPosts.meta.next_page %}
  38.             <a class="featured__pagination--link next" href="{{ path('blog_post_index', { 'page': blogPosts.meta.next_page }) }}">
  39.               Next
  40.               <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="23.3" height="40.35" viewBox="0 0 23.3 40.35">
  41.                 <polyline points="23.3 20.17 3.13 40.35 0 37.22 17.04 20.17 0 3.13 3.13 0"/>
  42.               </svg>
  43.             </a>
  44.           {% endif %}
  45.         </div>
  46.             </div>
  47.         {% endif %}
  48.     </main>
  49. {% endblock %}