-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpost.html
39 lines (39 loc) · 973 Bytes
/
post.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
---
layout: default
---
{% assign month = page.date | date: "%-m" %}
<main>
<article>
<header>
<h1>{{ page.title }}</h1>
<time datetime="{{ page.date | date: '%Y-%m-%d' }}">{{ page.date | date: "%-d" }}
{% case month %}
{% 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 %}
{{ page.date | date: "%Y" }}</time>
</header>
{{ content }}
</article>
<nav class="post">
{% if page.previous %}
« <a rel="prev" href="{{ page.previous.url }}">{{ page.previous.title }}</a>
{% endif %}
{% if page.previous and page.next %}
—
{% endif %}
{% if page.next %}
<a rel="next" href="{{ page.next.url }}">{{ page.next.title }}</a> »
{% endif %}
</nav>
</main>