blog-list-item.html.twig 786 B

123456789101112131415161718192021222324252627
  1. <div class="card">
  2. {% set image = page.media.images|first %}
  3. {% if image %}
  4. <div class="card-image">
  5. <a href="{{ page.url }}">{{ image.cropZoom(800,400).html }}</a>
  6. </div>
  7. {% endif %}
  8. <div class="card-header">
  9. <div class="card-subtitle text-gray">
  10. {% include 'partials/blog/date.html.twig' %}
  11. </div>
  12. <div class="card-title">
  13. {% include 'partials/blog/title.html.twig' with {title_level: 'h5'} %}
  14. </div>
  15. </div>
  16. <div class="card-body">
  17. {% if page.summary != page.content %}
  18. {{ page.summary }}
  19. {% else %}
  20. {{ page.content }}
  21. {% endif %}
  22. </div>
  23. <div class="card-footer">
  24. {% include 'partials/blog/taxonomy.html.twig' %}
  25. </div>
  26. </div>