-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharchive.html
More file actions
28 lines (27 loc) · 801 Bytes
/
Copy patharchive.html
File metadata and controls
28 lines (27 loc) · 801 Bytes
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
---
layout: page
title: Archive
description: "An archive of articles and notes by Markus Weimer, grouped by year."
permalink: /archive/
---
<div class="archive">
{% assign current_year = "" %}
{% for post in site.posts %}
{% assign post_year = post.date | date: "%Y" %}
{% if post_year != current_year %}
{% unless current_year == "" %}
</ul>
{% endunless %}
<h2>{{ post_year }}</h2>
<ul class="archive-posts">
{% assign current_year = post_year %}
{% endif %}
<li>
<time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%b %-d" }}</time>
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
</li>
{% endfor %}
{% unless current_year == "" %}
</ul>
{% endunless %}
</div>