Source

blog / archives.html

Full commit
---
layout: default 
title: Archives
---
<section id="archives">
  <h2>{{ page.title }}</h2>
  {% for post in site.posts %}
    {% capture year %}{{ post.date date:"%Y" }}{% endcapture %}
    {% if current_year == null or current_year != year %}
      {% assign current_year = year %}
      </ul>
      <h3>{{ year }}</h3>
      <ul>
    {% endif %}
     
    <li>{{ post.date | date:"%b %d" }} - <a href="{{ post.url }}">{{ post.title }}</a></li>
  {% endfor %}
</section>