templates/themes/theme/news/embedFeaturedNewsArticle.html.twig line 1

Open in your IDE?
  1. <a class="block mb-12 img-hover" href="{{ generatePath( app.request, article.linkedPageId, {'news_slug' : article.slug } ) }}">
  2.     {% if article.image %}
  3.         <div class="article-img">
  4.             <img class="max-w-full h-auto mb-8" src="{{ imageCache('/' ~ article.getFullImagePath, 'zoomCrop', 1040, 720) }}" width="670" height="464" alt="{{ article.title }}" loading="lazy" />
  5.         </div>
  6.     {% endif %}
  7.     <p class="text-sm mb-0 text-secondary"><strong>{{ allowInlineEditor(article, 'subtitle')|raw }}</strong></p>
  8.     <h3 class="capitalize text-dark mt-0 mb-0">{{ allowInlineEditor(article, 'title')|raw }}</h3>
  9.     {% if article.publishDate %}
  10.         <p class="text-sm text-dark mb-0">{{ article.publishDate|date('d F Y') }}</p>
  11.     {% endif %}
  12. </a>