summaryrefslogtreecommitdiffhomepage
path: root/website/content/blog/archive.html
blob: b9fdcd5446bd0ee6ac96df8b43997bcdcdd72a8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---
title: Archive
layout: default
permalink: /blog/archive/
---
{% for post in site.posts %}
  {% assign yearOfPost = post.date | date: "%Y" %}
  {% if yearOfPost != currentYear %}
    {% unless forloop.first %}</ul>{% endunless %}
    <h1>{{ yearOfPost }}</h1>
    <ul>
    {% assign currentYear = yearOfPost %}
  {% endif %}
  <li>
    <a href="{{ post.url }}">
      <span>{{ post.date | date: "%b %-d" }}</span> - {{ post.title }}
    </a>
  </li>
  {% if forloop.last %}
    </ul>
  {% endif %}
{% endfor %}