forked from maschinendeck/maschinendeck.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·49 lines (36 loc) · 1.09 KB
/
index.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
46
47
48
49
---
layout: default
title: Maschinendeck
---
{% for post in paginator.posts %}
<article class="post">
{% if post.external-url %}
<h1>
<a href="{{ post.external-url }}">{{ post.title }}</a>
<a class="anchor" href="{{ post.url }}"><i class="icon-anchor"></i></a>
</h1>
{% else %}
<h1><a href="{{ post.url }}">{{ post.title }}</a></h1>
{% endif %}
<div class="post-content">{{ post.content }}</div>
</article>
{% endfor %}
{% if paginator.total_pages > 1 %}
<div class="postnavigation">
{% if paginator.previous_page %}
{% if paginator.page == 2 %}
<a class="prev left" href="/">← Newer</a>
{% else %}
<a class="prev left" href="/page{{paginator.previous_page}}/">← Newer</a>
{% endif %}
{% else %}
<span class="nope left">← Newer</span>
{% endif %}
<span class="pages">Page {{ paginator.page }} of {{ paginator.total_pages }}</span>
{% if paginator.next_page %}
<a class="next right" href="/page{{paginator.next_page}}/">Older →</a>
{% else %}
<span class="nope right">Older →</span>
{% endif %}
</div>
{% endif %}