summaryrefslogtreecommitdiff
path: root/_layouts/archive.html
blob: c794c22b4244492ceb4b86117bad5d42761f04ff (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
37
38
39
---
layout: default
---

{% markdown %}
## Blog posts tagged with #{{ page.title | slugify }}
{% endmarkdown %}

{% include posts-intro.md %}

{% for post in page.posts %}
	{% if post.wip %}{% continue %}{% endif %}
	{% assign this_year = post.date | date: "%Y" %}

	{% if this_year != prev_year %}
		{% if forloop.first != true %}
			</ul>
		{% endif %}

		<h3>{{ this_year }}</h3>
		<ul>
	{% endif %}

	<li>
		<a href="{{ post.url }}">{{ post.title }}</a>
		<small>
			{{ post.date | date: "%Y-%m-%d" }}
			{% for tag in post.tags %}
			<a href="{{ site.baseurl | prepend: site.url }}/tag/{{ tag | slugify }}">#{{ tag | slugify }}</a>
			{% endfor %}
		</small>
	</li>

	{% if forloop.last %}
		</ul>
	{% endif %}

	{% assign prev_year = post.date | date: "%Y" %}
{% endfor %}