{% capture this_year %}{{ post.date | date: “%Y” }}{% endcapture %} {% unless year == this_year %} {% assign year = this_year %} <h2 class='year'><a href='/archives/{{ year }}/'>{{year}}</a></h2> {% endunless %}
{% capture this_month %}{{ post.date | date: “%B%Y” }}{% endcapture %} {% unless month == this_month %} {% assign month = this_month %} <h3 class='month'>{{ post.date | date: “%B” }}</h3> {% endunless %}
<li><span class='day'>{{ post.date | date:“%d” }}</span> <a href=“{{ post.url }}”>{{ post.title }}</a></li>