sidebar.html.twig 576 B

12345678910111213141516171819
  1. {% set options = { items: {'@page.children': '/agenda'}, 'limit': 3, 'order': {'by': 'date', 'dir': 'desc'} } %}
  2. {% set h2 = h2 ?: 'h2' %}
  3. {% set h3 = h3 ?: 'h3' %}
  4. <div class="sidebar">
  5. <{{h2}}>À venir</{{h2}}>
  6. {% for p in page.collection(options)%}
  7. <div class="side-agenda">
  8. <a href="{{p.url}}">
  9. {% include 'partials/blog/date.html.twig' with {page: p } %}
  10. <{{h3}}>{{p.title}}</{{h3}}>
  11. {{p.summary(70)}}
  12. </a>
  13. </div>
  14. {% endfor %}
  15. <div class="side-all-agenda">
  16. <a href="/agenda">voir tout l'agenda</a>
  17. </div>
  18. </div>