layout: default


<h1>All Posts</h1> {% for post in site.posts %}

{% assign currentdate = post.date | date: "%Y" %}
{% if currentdate != date %}
  {% unless forloop.first %}</ul>{% endunless %}
  <h3 id="y{{post.date | date: "%Y"}}">{{ currentdate }}</h3>
  <ul>
  {% assign date = currentdate %}
{% endif %}
  <li><a href="{{ post.url }}">{{ post.title }}</a><span class="post-date"> - {{ post.date | date: "%b %-d, %Y" }}</span></li>
{% if forloop.last %}</ul>{% endif %}

{% endfor %}