summaryrefslogtreecommitdiff
path: root/archive.liquid
blob: 3e50bbf82ca8649c0ec50cda0f4ee7b32bf6d97f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---
layout: page
permalink: /archive.html
---

<h1>
    {{ site.data[site.active_lang].strings.global.archive }}
</h1>
{% for post in site.posts %}
    <div class="column">
	{% unless post.next %}
	    <h2>{{ post.date | date: '%Y' }}</h2>
{% else %}
	    {% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
	    {% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %}
	    {% if year != nyear %}
		<h2>{{ post.date | date: '%Y' }}</h2>
	    {% endif %}
	{% endunless %}	
	{% include archived_post.liquid %}
    </div>
{% endfor %}