diff --git a/templates/archive.html b/templates/archive.html index af9df6e..8b98232 100644 --- a/templates/archive.html +++ b/templates/archive.html @@ -10,6 +10,22 @@ {% set section = get_section(path="_index.md") %} - {{ post_macros::list_posts(pages=section.pages) }} + {% set pages_by_year = section.pages | group_by(attribute="year") %} + {%- for year, pages_in_year in pages_by_year %} +