2
0

location-card.html 553 B

123456789101112131415
  1. {% load wagtailimages_tags %}
  2. <div class="location-card col-sm-4">
  3. <a class="location-card__link" href="{{page.url}}">
  4. <figure class="location-card__image">
  5. {% image page.image fill-430x320-c100 loading="lazy" %}
  6. </figure>
  7. <div class="location-card__contents">
  8. <h3 class="location-card__title">{{page.title}}</h3>
  9. {% if page.introduction %}
  10. <p class="location-card__text">{{ page.introduction|truncatewords:15 }}</p>
  11. {% endif %}
  12. </div>
  13. </a>
  14. </div>