templates/front/post.html.twig line 1

Open in your IDE?
  1. {% extends "base.html.twig" %}
  2. {% block metaTags %}
  3.     <meta name="description" content="{{ post.metaDescription }}">
  4.     <title>{{ post.metaTitle }}</title>
  5. {% endblock %}
  6. {% block body %}
  7.     <div class="container">
  8.         {% if asbtemplate.post.title %}
  9.             <h1>{{ post.title }}</h1>
  10.         {% endif %}
  11.         <hr/>
  12.         {% if asbtemplate.post.intro %}
  13.             <p>{{ post.intro|raw }}</p>
  14.         {% endif %}
  15.         {% if asbtemplate.post.date %}
  16.             <p>{{ post.date|date("d/m/Y") }}</p>
  17.         {% endif %}
  18.         {% if asbtemplate.post.paragraphs %}
  19.             {% for key, paragraph in paragraphs %}
  20.                 <div>
  21.                     {% if asbtemplate.paragraph.content and paragraph.content %}
  22.                         <div>
  23.                             {{ paragraph.content|raw }}
  24.                         </div>
  25.                     {% endif %}
  26.                     {% if asbtemplate.paragraph.paragraphFile and paragraph.paragraphFileName %}
  27.                         <div class="text-center">
  28.                             <img src="{{ asset(vich_uploader_asset(paragraph, 'paragraphFile')) }}"
  29.                                     {% if asbtemplate.paragraph.legend and paragraph.legend %}
  30.                                         alt="{{ paragraph.legend }}"
  31.                                     {% endif %}
  32.                             />
  33.                         </div>
  34.                         {% if asbtemplate.paragraph.legend and paragraph.legend %}
  35.                             <p>{{ paragraph.legend }}</p>
  36.                         {% endif %}
  37.                     {% endif %}
  38.                 </div>
  39.             {% endfor %}
  40.         {% endif %}
  41.     </div>
  42. {% endblock %}