news.html.twig 372 B

1234567891011121314151617181920
  1. {% set grid_size = theme_var('grid-size') %}
  2. {% set image = page.media.images|first %}
  3. <section class="news">
  4. {% include 'partials/blog/date.html.twig' %}
  5. <h3><a href="#">{{header.title}}</a></h3>
  6. <div class="txt">
  7. {{ content }}
  8. </div>
  9. {% if image %}
  10. <div class="media">
  11. {{ image.html }}
  12. </div>
  13. {% endif %}
  14. </section>