Archives¶
{% assign posts_by_month = site.posts | group_by_exp: 'post', "post.date | date: '%B %Y'" %}
{% if posts_by_month and posts_by_month.size > 0 %}
-
{% for month in posts_by_month %}
{% assign anchor = month.name | downcase | replace: ' ', '-' %}
- {{ month.name }} ({{ month.items | size }}) {% endfor %}
{% for month in posts_by_month %}
{% assign anchor = month.name | downcase | replace: ' ', '-' %}
{{ month.name }}
-
{% for post in month.items %}
- {{ post.title }} {% endfor %}
{% endfor %}
{% else %}
No posts yet.
{% endif %}