templates/posts/show.html.twig line 1

Open in your IDE?
  1. {% extends 'standard_tpl.html.twig' %}
  2. {% macro render_author_bio(user) %}
  3.     <div class="author-info bg-grey p-3 rounded-1 d-flex align-items-center">
  4.         <div class="author-img me-3">
  5.             <img src="{{ user.thumbnail|imagine_filter('thumbnail_small') }}" alt="{{ user.getFullName() }}" class="rounded border border-3 border-white object-fit-cover">
  6.         </div>
  7.         <div class="author-info text-start">
  8.             <h4 class="mb-1">{{ user.getFullName() }}</h4>
  9.             <p class="m-0"><small>{{ user.bio }}</small></p>
  10.         </div>
  11.     </div>  
  12. {% endmacro %}
  13. {% import _self as m %}
  14. {% set page_banner = 'build/images/blog.jpeg' %}
  15. {% block post_content_container %}
  16.     <div class="article-detail-left">
  17.         <div class="article-detail-image mb-6">
  18.             <img src="{{ content.thumbnail|imagine_filter('page_banner') }}" alt="{{ content.title }}" class="w-100 rounded-1">
  19.         </div>
  20.         <div class="article-detail-info mb-6 text-center text-md-start">
  21.             <h3 class="mb-5 pb-5 border-dashed-bottom">{{ content.title }}</h3>
  22.             {{ content.body|raw }}
  23.             {{ m.render_author_bio(content.getUser() )}}
  24.         </div>
  25.     </div>
  26. {% endblock %}