-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcategories.html
45 lines (44 loc) · 1.06 KB
/
categories.html
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
40
41
42
43
44
45
---
layout: default
body_class: categories
---
<div class="container">
<main>
<h1>Alle posts</h1>
<section class="category-overview">
{% for category in site.categories %}
<article>
<h2 id="{{ category | first }}">{{ category | first }}</h2>
<dl class="category-list">
{% for posts in category %}
{% for post in posts %}
<dt>
{% assign m = post.date | date: "%-m" %}
{{ post.date | date: "%-d" }}
{% case m %}
{% when '1' %}januari
{% when '2' %}februari
{% when '3' %}maart
{% when '4' %}april
{% when '5' %}mei
{% when '6' %}juni
{% when '7' %}juli
{% when '8' %}augustus
{% when '9' %}september
{% when '10' %}oktober
{% when '11' %}november
{% when '12' %}december
{% endcase %}
{{ post.date | date: "%Y" }}
</dt>
{% if post.url %}
<dd><a href="{{ post.url }}"> {{ post.title }}</a></dd>
{% endif %}
{% endfor %}
{% endfor %}
</dl>
</article>
{% endfor %}
</section>
</main>
</div>