listing-card.html 1.2 KB

12345678910111213141516171819202122232425262728
  1. <div class="listing-card">
  2. <a class="listing-card__link" href="{{ page.url }}">
  3. {% if page.image %}
  4. <figure class="listing-card__image">
  5. {{ image(page.image, "fill-180x180-c100", loading="lazy") }}
  6. </figure>
  7. {% endif %}
  8. <div class="listing-card__contents">
  9. <h3 class="listing-card__title">{{ page.title }}</h3>
  10. {% if page.origin or page.bread_type %}
  11. <table class="listing-card__meta">
  12. {% if page.origin %}
  13. <tr>
  14. <td class="listing-card__meta-category">Origin</td>
  15. <td class="listing-card__meta-content">{{ page.origin }}</td>
  16. </tr>
  17. {% endif %}
  18. {% if page.bread_type %}
  19. <tr>
  20. <td class="listing-card__meta-category">Type</td>
  21. <td class="listing-card__meta-content">{{ page.bread_type }}</td>
  22. </tr>
  23. {% endif %}
  24. </table>
  25. {% endif %}
  26. </div>
  27. </a>
  28. </div>