templates/content/blogPost.html.twig line 1

Open in your IDE?
  1. {% extends 'layouts/layout.html.twig' %} 
  2. {% block body %}
  3. <div id="main-content" class="content">
  4.   <div class="section top-padding">
  5.       <div class="inner">
  6.         <div class="row bottom-padding gutter-space--lg">
  7.           <div class="col col-lg-8 col-md-8 col-sm-12 col-xs-12">
  8.             {{ blogPost.getWysiwyg()|raw }}
  9.           </div>
  10.           <div class="col col-lg-4 col-md-4 col-sm-12 col-xs-12">
  11.             <h3>Other Posts</h3>
  12.             {% set blogPosts = app_blog_posts_get() %}
  13.             {% if blogPosts and blogPosts|length > 0 %}
  14.               <div class="sidebar--posts">
  15.                 {% for blogPost in blogPosts %}
  16.                 {% set blogPostLink = blogPost['slug'] %}
  17.                 {% set currentPath = path(app.request.attributes.get('_route'),
  18.                        app.request.attributes.get('_route_params')) %}
  19.                 {% set blogPath = '/insights/' ~ blogPost['slug'] %}
  20.                 {% if currentPath is not same as blogPath %}
  21.                   <a href="{{ blogPostLink }}">
  22.                     <div class="row gutter-space--xs sidebar--post">
  23.                             <div class="col-lg-3 col-md-3 col-sm-3 col-xs-3 text-align-center square-crop">
  24.                               {% if blogPost['featuredImageThumbnail'] %}
  25.                               <img src="{{ blogPost['featuredImageThumbnail'] }}" style="width:100%;height:100%;object-fit:cover;">
  26.                               {% else %}
  27.                               {{ source("@torq_static/img/branding/torq-logo-letter-t.svg") }}
  28.                               {% endif %}
  29.                             </div>
  30.                             <div class="col col-lg-9 col-md-9 col-sm-9 col-xs-9">
  31.                               <p>{{ blogPost['title'] }}</p>
  32.                               <p class="meta--date">{{ blogPost['date'] }}</p>
  33.                             </div>
  34.                     </div>
  35.                   </a>
  36.                 {% endif %}
  37.                 {% endfor %}
  38.               </div>
  39.             {% endif %}
  40.           </div>
  41.       </div>
  42.   </div>
  43.   {% include 'content/includes/case-study-carousel.html.twig' %}
  44.   <section class="section top-bottom-padding bg-color--red light">
  45.     <div class="inner text-align-center">
  46.         <div class="row gutter-space--md center-lg center-md center-sm center-xs">
  47.             <div data-aos="fade-up" class="cta-display-flex no-bottom-margin col-lg-12 col-md-12 col-sm-12 col-xs-12">
  48.                 <h1 data-aos="fade-up" class="h2--lg aos-init aos-animate">Ready to get started?</h1>
  49.                 <a href="/contact" class="btn dark">Talk to an expert</a>
  50.             </div>
  51.         </div>
  52.     </div>
  53.   </section>
  54. </div>
  55. {% endblock %}