Skip to main content
1 of 9
Douglas McDonald
  • 13.5k
  • 25
  • 57

I believe this should work.

{% set allEntriesByWeek = allEntries|group('postDate|date('Y-W')') %}
{% for week, entry in allEntriesByWeek %}
    <li><a href="events/{{ week|replace('-','/') }}">{{ week }}</a></li>
{% endfor %}
Douglas McDonald
  • 13.5k
  • 25
  • 57