{% set options = { items: {'@page.children': '/agenda'}, 'limit': 3, 'order': {'by': 'date', 'dir': 'desc'} } %}

<div class="sidebar">
  <h2>À venir</h2>
  {% for p in page.collection(options)%}
  <div class="side-agenda">
    <a href="{{p.url}}">
    {% include 'partials/blog/date.html.twig' with {page: p } %}
        <h3>{{p.title}}</h3>
        {{p.summary(50)}}
    </a>
  </div>
  {% endfor %}
  <div class="side-all-agenda">
    <a href="/agenda">voir tout l'agenda</a>
  </div>
</div>
