summaryrefslogtreecommitdiff
path: root/articles/index.html
blob: ff8a8cf70f296cff1eeeac8016179fee68df324a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
title: archives
layout: default
---

{% for post in site.posts reverse %}

  {% capture date %}{{ post.date }}{% endcapture %}
  {% capture this_year %}{{ date | date: "%Y" }}{% endcapture %}

  {% unless year == this_year %}
    {% assign year = this_year %}
    {% unless forloop.first %}
      </section>
    {% endunless %}
    <section class="archives"><h2>{{ date | date: "%Y" }}</h2>
  {% endunless %}

  <article>
    <a href="{{ root_url }}{{ post.url }}">{{post.title}}</a>
  </article>

{% endfor %}