I\'m trying to group a list of date/times in Jinja by month/year. Here\'s the code I have right now:
{% for group in EventsList|groupby(\'date\') %}
<
You could first groupby('date.year') and then groupby('date.month').
{% for year, year_group in EventsList|groupby('date.year') %}
{% for month, list in year_group|groupby('date.month') %}
<b>{{ month }} {{ year }}</b><br />
{% for event in list %}
<i>{{event.title}}</i>
{% endfor %}
{% endfor %}
{% endfor %}