templates/default/page.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block body_id 'post' %}
  3. {% block body %}
  4. {% if page.text is not empty %}
  5. <div class="postPage">
  6. <div class="container">
  7.     <div class="w70 w-xl-75 w-lg-80 w-md-80 w-sm-90 w-xs-100 margin-auto">
  8.         <nav aria-label="breadcrumb">
  9.             <ol class="breadcrumb">
  10.                 <li class="breadcrumb-item">
  11.                     <a href="{{ path('homepage') }}">Home</a>
  12.                 </li>
  13.                 {% for item in page.getBreadcrumbTrail() %}
  14.                     {% if loop.last %}
  15.                         <li class="breadcrumb-item active" aria-current="page">{{ item.title }}</li>
  16.                     {% else %}
  17.                         <li class="breadcrumb-item">
  18.                             <a href="{{ path('page_show', {slug: item.slug}) }}">{{ item.title }}</a>
  19.                         </li>
  20.                     {% endif %}
  21.                 {% endfor %}
  22.             </ol>
  23.         </nav>
  24.         <div class=" h2 bold">{{ page.title }}</div>
  25.         <div class=" h4">
  26.         {{ page.short|raw }}
  27.         </div>
  28.         {{ page.text|raw }}
  29.     </div>
  30. </div>
  31. </div>
  32. {% endif %}
  33. {% endblock %}