---
layout: default
title: Archives
id: 'archives/index'
---
<header><h1>Archives</h1></header>

<div id="blog-archives">
  {% for post in site.posts %}
    {% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
    {% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}

    {% if forloop.first %}
      <h3 class="year">{{ this_year }}</h3>
      <ul>
    {% endif %}

    <li><span>{{ post.date | date: "%b %d" }}</span><a href="{{ post.url }}">{{ post.title }}</a></li>

    {% if forloop.last %}
      </ul>
    {% elsif this_year != next_year %}
      </ul>
      <h3 class="year">{{ next_year }}</h3>
      <ul>
    {% endif %}
  {% endfor %}
</div>

---
layout: default
title: Archives
id: 'archives/index'
---
<header><h1>Archives</h1></header>

<div id="blog-archives">
  {% for post in site.posts %}
    {% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
    {% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}

    {% if forloop.first %}
      <h3 class="year">{{ this_year }}</h3>
      <ul>
    {% endif %}

    <li><span>{{ post.date | date: "%b %-d" }}</span><a href="{{ post.url }}">{{ post.title }}</a></li>

    {% if forloop.last %}
      </ul>
    {% elsif this_year != next_year %}
      </ul>
      <h3 class="year">{{ next_year }}</h3>
      <ul>
    {% endif %}
  {% endfor %}
</div>

Remove leading zeros in dates
Remove leading zeros in dates
