blog.html.twig 831 B

123456789101112131415161718192021222324252627282930313233
  1. {% extends 'partials/base.html.twig' %}
  2. {% set collection = page.collection() %}
  3. {% block header %}
  4. <header>
  5. <h1>
  6. <a href="/">{{site.title}}</a>
  7. </h1>
  8. </header>
  9. {% endblock %}
  10. {% block body %}
  11. <section class="body-wrapper" id="item_list">
  12. <div id="icone_list">
  13. <button class="hamburger hamburger--slider is-active" type="button">
  14. <span class="hamburger-box">
  15. <span class="hamburger-inner"></span>
  16. </span>
  17. </button>
  18. </div>
  19. {% block item %}
  20. {% for child in collection %}
  21. {% include 'partials/blog-list-item.html.twig' with {blog: page, page: child} %}
  22. {% endfor %}
  23. {% endblock %}
  24. </section>
  25. {% block aside %}
  26. {% include 'partials/sidebar.html.twig' %}
  27. {% endblock %}
  28. {% endblock %}