templates/components/NewsThumbnail.html.twig line 1

Open in your IDE?
  1. <a
  2. class="news-thumbnail"
  3. href="{{generatePath( app.request, article.linkedPageId, {'news_slug' : article.slug } ) }}"
  4. >
  5. <img
  6. class="news-thumbnail__image"
  7. src="{{ imageCache('/' ~ article.getFullImagePath, 'zoomCrop', 1200, 900) }}"
  8. alt="{{ article.title }}"
  9. loading="lazy"
  10. >
  11. <h2 class="news-thumbnail__title">{{ article.isActive and article.publishDate <= date() ? '' : 'PREVIEW - ' }}{{ article.title }}</h2>
  12. <span class="news-thumbnail__date">
  13. {{- article.publishDate | date('d F Y') -}}
  14. </span>
  15. <p class="news-thumbnail__excerpt">
  16. {{- article.excerpt | striptags -}}
  17. </p>
  18. <div class="news-thumbnail__footer">
  19. <span class="news-thumbnail__read-more"
  20. >Read More <span class="sr-only">about {{ article.title }}</span> <i class="fa-regular fa-angle-right"></i
  21. ></span>
  22. </div>
  23. </a>