blog.html.twig 810 B

123456789101112131415161718192021222324252627282930313233343536
  1. {% extends 'partials/base.html.twig' %}
  2. {% set collection = page.collection() %}
  3. {% set image = page.media.images|first %}
  4. {% block stylesheets %}
  5. {% do assets.addCss('theme://css/bricklayer.css') %}
  6. {{ parent() }}
  7. {% endblock %}
  8. {% block body %}
  9. <section id="body-wrapper" class="section blog-listing">
  10. <div class="bandeau">
  11. {% if image %}
  12. {{image.html}}
  13. {% endif %}
  14. </div>
  15. <div class="content">
  16. <h2>{{page.title}}</h2>
  17. {{content}}
  18. </div>
  19. {% if show_sidebar %}
  20. {% block sidebar %}
  21. {% include 'partials/sidebar.html.twig' %}
  22. {% endblock %}
  23. {% endif %}
  24. <!-- {% for item in page.collection %}
  25. <h3>{{item.title}}</h3>
  26. {{item.content}}
  27. {% endfor %} -->
  28. </section>
  29. {% endblock %}