summaryrefslogtreecommitdiff
path: root/archive.liquid
blob: adc35f5fa9b9e5d218a3d1feae2417f4048a1c1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
layout: default
permalink: /archive.html
---

<div class="column">
    <h1>
	{% t global.archive %}
    </h1>

    {% for post in site.posts %}
    {% unless post.next %}
        <h2>{{ post.date | date: '%Y' }}</h2>
	<ul>
	    {% else %}
	    {% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
            {% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %}
            {% if year != nyear %}
        </ul>
        <h2>{{ post.date | date: '%Y' }}</h2>
        <ul>
            {% endif %}
	    {% endunless %}
	    <li>
		<a href="{{ site.baseurl}}{{ post.url }}">
		    {{ post.date | date: "%b %-d" }} - {{ post.title }}
		</a>
	    </li>
	    {% endfor %}
</div>