picture-card.html 552 B

12345678910111213141516
  1. {% load wagtailimages_tags %}
  2. <div class="picture-card">
  3. <a class="picture-card__link" href="{{ page.url }}">
  4. <figure class="picture-card__image">
  5. {% if portrait %}
  6. {% image page.image fill-433x487-c100 loading="lazy" %}
  7. {% else %}
  8. {% image page.image fill-645x480-c75 loading="lazy" %}
  9. {% endif %}
  10. <div class="picture-card__contents">
  11. <h3 class="picture-card__title">{{ page.title }}</h3>
  12. </div>
  13. </figure>
  14. </a>
  15. </div>