templates/client/blog/show.html.twig line 1

Open in your IDE?
  1. {% extends '/client/common/base.html.twig' %}
  2. {% block title %}Home{% endblock %}
  3. {% block body %}
  4. <div class="uk-container uk-container-large uk-margin-large uk-margin-large-top">
  5.     <h1>{{ entry.title }}</h1>
  6.     <div>
  7.         <div class="uk-card">
  8.             <div class="uk-card-media-top">
  9.                 {% if (entry.imageIntro.imageName) %}
  10.                 <picture>
  11.                     <source srcset="{{ vich_uploader_asset(entry.imageFull, 'imageFile') | imagine_filter('blog_large_webp') }}" type="image/webp">
  12.                     <source srcset="{{ vich_uploader_asset(entry.imageFull, 'imageFile') | imagine_filter('blog_large') }}" type="image/jpeg">
  13.                     <img src="{{ vich_uploader_asset(entry.imageFull, 'imageFile') | imagine_filter('blog_large') }}" alt="{{ entry.title }}">
  14.                 </picture>
  15.                 {% endif %}
  16.             </div>
  17.             <div class="uk-card-body">
  18.                 <div class="uk-text-meta uk-margin-bottom">
  19.                     {{ 'Created at'|trans }}: {{ entry.createdAt|date("d/m/Y") }},
  20.                     {{ 'Posted at'|trans }}:
  21.                     {% for category in entry.blogCategories %}
  22.                         <a href="{{ path('client_blog_category_article_list', {'slug': category.slug }) }}">{{ category.title }}</a>
  23.                         {% if not (loop.last) %}, {% endif %}
  24.                     {% endfor %}
  25.                 </div>
  26.                 <div>{{ entry.content|raw }}</div>
  27.             </div>
  28.         </div>
  29.     </div>
  30. </div>
  31. {% endblock %}