templates/web/blog-detail.html.twig line 1

Open in your IDE?
  1. {% extends 'web/base.html.twig' %}
  2. {% block title %}{{ article.metaTitle ?: article.title }} – 2sweet{% endblock %}
  3. {% block stylesheets %}
  4.     {{ parent() }}
  5.     <link href="https://cdn.quilljs.com/1.3.7/quill.snow.css" rel="stylesheet">
  6.     <style>
  7.         .article-content .ql-align-center { text-align: center; }
  8.         .article-content .ql-align-right  { text-align: right; }
  9.         .article-content .ql-align-justify { text-align: justify; }
  10.         .article-content .ql-indent-1 { padding-left: 3em; }
  11.         .article-content .ql-indent-2 { padding-left: 6em; }
  12.         .article-content .ql-indent-3 { padding-left: 9em; }
  13.         .article-content h2 { font-size: 1.6em; margin: 1.2em 0 0.5em; }
  14.         .article-content h3 { font-size: 1.3em; margin: 1em 0 0.4em; }
  15.         .article-content h4 { font-size: 1.1em; margin: 0.8em 0 0.3em; }
  16.         .article-content p  { margin-bottom: 0.9em; }
  17.         .article-content ul, .article-content ol { padding-left: 1.8em; margin-bottom: 0.9em; }
  18.         .article-content li { margin-bottom: 0.3em; }
  19.         .article-content a  { color: #b85b63; }
  20.         .article-content strong { font-weight: 700; }
  21.     </style>
  22. {% endblock %}
  23. {% block seo %}
  24.     {% if article.metaDescription %}
  25.         <meta name="description" content="{{ article.metaDescription }}">
  26.     {% endif %}
  27.     {% if article.metaKeywords %}
  28.         <meta name="keywords" content="{{ article.metaKeywords }}">
  29.     {% endif %}
  30.     <meta property="og:title" content="{{ article.metaTitle ?: article.title }}">
  31.     {% if article.metaDescription %}
  32.         <meta property="og:description" content="{{ article.metaDescription }}">
  33.     {% endif %}
  34.     <meta property="og:type" content="article">
  35. {% endblock %}
  36. {% block body %}
  37.     {{ include('web/components/inner/breadcrumb.html.twig') }}
  38.     <div class="bgWhite">
  39.         <div class="container">
  40.             <div class="emptySpace100 emptySpace-xs60"></div>
  41.             <div class="row">
  42.                 <div class="col-lg-8 col-md-10 mx-auto">
  43.                     <p style="color:#b85b63; font-size:13px; margin-bottom:10px;">
  44.                         {{ article.publishedAt ? article.publishedAt|date('d. F Y.') : article.createdAt|date('d. F Y.') }}
  45.                     </p>
  46.                     <h1 class="h2" style="color:#4b2c20; margin-bottom:24px; line-height:1.4;">{{ article.title }}</h1>
  47.                     {% if article.excerpt %}
  48.                         <p class="normall" style="color:#888; font-size:17px; line-height:1.8; margin-bottom:30px; border-left:3px solid #b85b63; padding-left:16px; font-style:italic;">
  49.                             {{ article.excerpt }}
  50.                         </p>
  51.                     {% endif %}
  52.                     {% if article.image %}
  53.                         <img src="{{ asset('uploads/articles/' ~ article.image) }}"
  54.                              alt="{{ article.title }}"
  55.                              style="max-width:100%; height:auto; border-radius:8px; margin-bottom:32px; display:block;">
  56.                     {% endif %}
  57.                     <div class="normall article-content" style="color:#444; line-height:1.9; font-size:16px;">
  58.                         {{ article.content|raw }}
  59.                     </div>
  60.                     <div style="margin-top:48px; padding-top:24px; border-top:1px solid #f3d9d2;">
  61.                         <a href="{{ path('web_blog') }}"
  62.                            style="color:#b85b63; font-weight:600; text-decoration:none;">
  63.                             &larr; Natrag na novosti
  64.                         </a>
  65.                     </div>
  66.                 </div>
  67.             </div>
  68.             <div class="emptySpace-xs60 emptySpace95"></div>
  69.         </div>
  70.     </div>
  71.     <div class="footerSeparator"></div>
  72.     <div class="emptySpace50 emptySpace-xs30"></div>
  73. {% endblock %}