templates/Default/page.html.twig line 1

Open in your IDE?
  1. {% if page %}
  2. {% set title = page.title %}
  3. {% set description = page.description %}
  4. {% endif %}
  5. {% set menu = menu ? menu : 'about' %}
  6. {% extends 'Default/base.html.twig' %}
  7. {% block titlebox %}
  8. {% endblock titlebox %}
  9. {% block body %}
  10. {% endblock body %}
  11. {% block banner %}
  12. <div class="flex col htop-in">
  13.     <div class='relative w100 flex col gpadding {{desktop("top-40-in")}} {{mobile("")}}'>
  14.         <i class="vt-5-in bg-gray quarter-80 radius-5"></i>
  15.         <h1 class='success h2'>{{title}}</h1>
  16.     </div>
  17.     <div class='relative gpadding {{desktop("vt-80-in")}} {{mobile("vt-30-in")}} '>
  18.         {% if page %}
  19.         {% set content = page.content|summary %}
  20.         <div class='{{desktop("flex row top")}} {{mobile("")}}'>
  21.             {% set hasSidebar = page.picture or page.pictureTitle or page.pictureSubtitle or content.summary|length > 20 %}
  22.             {% if page.picture or page.pictureTitle or page.pictureSubtitle %}
  23.             <figure class='{{desktop("third right-80 ")}} {{mobile("w100 bottom-20")}}'>
  24.                 {% if page.picture %}
  25.                 <img src='{{asset(page.picture.thumbnail)}}' class='block w100 {{desktop("radius-20")}} {{mobile("radius-10")}}' alt="{{page.pictureTitle ? page.pictureTitle : title}}">
  26.                 {% endif %}
  27.                 <h2 class='h3 success top-20 upper font-alt'>{{page.pictureTitle ? page.pictureTitle}}</h2>
  28.                 <h3 class='h6 semibold'>{{page.pictureSubtitle ? page.pictureSubtitle}}</h3>
  29.             </figure>
  30.             {% elseif content.summary|length > 20 %}
  31.             <div class='border-right border-1x border-solid border-gray-alt hoverflow {{desktop("third-40 right-80")}} {{mobile("w100 bottom-20")}}'>
  32.                 <ul class='list h5'>
  33.                     {{ content.summary|raw }}
  34.                 </ul>
  35.             </div>
  36.             {% endif %}
  37.             <div class='w100 {{desktop('')}} {{mobile("")}} '>
  38.                 <div class='article h6 text-justify light'>
  39.                 {{ content.content|raw }}
  40.                 </div>
  41.             </div>
  42.         </div>
  43.         {% endif %}
  44.     </div>
  45. </div>
  46. {% endblock %}