summaryrefslogtreecommitdiff
path: root/archive.liquid
blob: 71ca8a9d08db9b9ed84576b3c1b3bdecc04c2a95 (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
31
32
33
34
35
36
---
layout: default
permalink: /archive.html
---

<div class="column">
    <h1>
	{{ site.data[site.active_lang].strings.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 %}
	<div class="columns">
	    <div class="column archive-date is-3">
		{% capture month%}{{ post.date |  date: "%b" }}{% endcapture %}
		{{ site.data[site.active_lang].strings.date[month]}} {{ post.date | date: "%e, %Y" }}
	    </div>
	    <div class="column pull-left">
		<a href="{{ site.baseurl}}{{ post.url }}">
		    {{ post.title }}
		</a>
	    </div>
	</div>
    {% endfor %}
</div>