layout | title |
---|---|
page |
News |
{% assign postsByYear = site.posts | group_by_exp:"post", "post.date | date: '%Y'" %} {% for year in postsByYear %}
-
{% for post in year.items %}
- {{ post.title }} {% endfor %}
layout | title |
---|---|
page |
News |
{% assign postsByYear = site.posts | group_by_exp:"post", "post.date | date: '%Y'" %} {% for year in postsByYear %}