blog-list-item.html.twig 793 B

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