templates/Front/blog/single.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}
  3.         {% if singleBlog.metaTitle is empty %}
  4.             {{ singleBlog.title }}
  5.         {% else %}
  6.             {{ singleBlog.metaTitle }}
  7.         {% endif %}
  8. {% endblock %}
  9. {% block description %}
  10.     {{ singleBlog.metaDescription }}
  11. {% endblock %}
  12.     {% block meta_noindex %}
  13.         {% if singleBlog.noIndex == true %}
  14.             <meta name="robots" content="noindex, nofollow">
  15.         {% else %}
  16.             <meta name="robots" content="index, follow">
  17.         {% endif %}
  18.     {% endblock %}
  19. {% block body %}
  20. <style>
  21. .blog-single__left ul {
  22.     padding: revert;
  23.     margin-left: 20px;
  24.     color: black;
  25. }
  26. .blog-single__left ul li {
  27.     list-style: disc;
  28.     color: black;
  29.     margin-bottom: 10px;
  30. }
  31. .page-header__content h1 {
  32.     font-size: 65px;
  33.     line-height: 1.2em;
  34.     font-weight: 700;
  35.     text-transform: capitalize;
  36.     margin-bottom: 40px;
  37. }
  38. @media only screen and (max-width: 767px) {
  39.     .page-header--blog-single .page-header__content h1 {
  40.         font-size: 40px;
  41.     }
  42. }
  43. .blog-single__left a{
  44.     color: var(--secondary-colorEC) !important;
  45.     transition: all 0.2s;
  46. }
  47. .blog-single__left a:hover{
  48.     font-weight: 600 !important
  49. }
  50. </style>
  51.     <section class="hero-area">
  52.         <div class="container">
  53.             <div class="row">
  54.                 <div class="col-12">
  55.                     <div class="container-content d-flex flex-column justify-content-center align-items-center" data-aos="zoom-in">
  56.                         <h1 class="main-title text-center">
  57.                             {{ singleBlog.title }}
  58.                         </h1>
  59.                     </div>
  60.                 </div>
  61.             </div>
  62.         </div>
  63.     </section>
  64.     <!--Start Blog Single-->
  65.     <section class="blog-single">
  66.         <div class="container">
  67.             <div
  68.                 class="row">
  69.                 <!--Start Blog Single  Left-->
  70.                 <div class="col-xl-8 col-lg-7">
  71.                     <div
  72.                         class="blog-single__left">
  73.                         <!--Start Single Blog Page Two-->
  74.                         <div class="blog-page-two__single style2">
  75.                             <div class="">
  76.                                 <img class="img-fluid" src="/uploads/blogs/images/{{ singleBlog.imageName }}" alt="lagence expert"/>
  77.                             </div>
  78.                         </div>
  79.                         <!--End Single Blog Page Two-->
  80.                         {{ singleBlog.description|raw }}
  81.                     </div>
  82.                 </div>
  83.                 <!--End Blog Single Left-->
  84.                 <!--Start Sidebar-->
  85.                 <div class="col-xl-4 col-lg-5">
  86.                     <div
  87.                         class="sidebar">
  88.                         <!--End Single Sidebar-->
  89.                         <div class="sidebar__single">
  90.                             <div class="contact-form">
  91.                                 <h2 class="title">
  92.                                     Votre audit est
  93.                                     <span class="text-green text-underline">
  94.                                         offert !
  95.                                         <svg width="121" height="13" viewBox="0 0 121 13" fill="none"
  96.                                              xmlns="http://www.w3.org/2000/svg">
  97.                                             <path d="M2.2998 10.07C52.459 2.41211 78.8787 2.41211 118.7 2.41211" stroke="#7CD325"
  98.                                                   stroke-width="4" stroke-linecap="round"/>
  99.                                         </svg>
  100.                                     </span>
  101.                                 </h2>
  102.                                 {{ form_start(form_audit) }}
  103.                                 {{ form_row(form_audit.page, { "value" : title }) }}
  104.                                 {{ form_widget(form_audit) }}
  105.                                 <button type="submit" class="btn regular primary">
  106.                                     <span>
  107.                                         Envoyer votre demande
  108.                                         <svg width="12" height="13" viewBox="0 0 12 13" fill="none"
  109.                                              xmlns="http://www.w3.org/2000/svg">
  110.                                             <path d="M5.88477 2.7334L10.2001 6.85261L5.88477 10.9718" stroke="white"
  111.                                                   stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
  112.                                             <path d="M10.1998 6.85266L1.7998 6.85266" stroke="white" stroke-width="1.5"
  113.                                                   stroke-linecap="round" stroke-linejoin="round"/>
  114.                                         </svg>
  115.                                     </span>
  116.                                 </button>
  117.                                 {{ form_end(form_audit) }}
  118.                             </div>
  119.                         </div>
  120.                     </div>
  121.                 </div>
  122.                 <!--End Sidebar-->
  123.             </div>
  124.         </div>
  125.     </section>
  126.     <!--End Blog Single-->
  127. {% endblock %}