-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
84 lines (72 loc) · 2.23 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
---
layout: page
title: InfraBricks
tagline:
---
{% for post in paginator.posts %}
<article class="home">
<span class="post-date">
{% assign m = post.date | date: "%-m" %}
{{ post.date | date: "%-d" | plus:'0' }}
{% case m %}
{% when '1' %}Januar
{% when '2' %}Februar
{% when '3' %}März
{% when '4' %}April
{% when '5' %}Mai
{% when '6' %}Juni
{% when '7' %}Juli
{% when '8' %}August
{% when '9' %}September
{% when '10' %}Oktober
{% when '11' %}November
{% when '12' %}Dezember
{% endcase %}
{{ post.date | date: "%Y" }}
</span>
<h2>
<a href="{{ site.BASE_PATH }}{{ post.url }}">{{ post.title }}</a>
</h2>
<div>
{% if post.fullview %}
{{ post.content }}
{% else %}
{% if post.shortinfo %}
{{ post.shortinfo }}
{% elsif post.description %}
{{ post.description }}
{% else %}
{{ post.excerpt }}
{% endif %}
{% endif %}
</div>
</article>
{% endfor %}
<hr/>
<ul class="pager">
{% if paginator.previous_page %}
<li class="previous">
{% if paginator.previous_page == 1 %}
<a href="{{ site.BASE_PATH }}/">← Zurück</a>
{% else %}
<a href="{{ site.BASE_PATH }}/page{{ paginator.previous_page }}">← Zurück</a>
{% endif %}
</li>
{% else %}
<li class="previous disabled">
<a>← Zurück</a>
</li>
{% endif %}
<li>
<span class="page_number">Seite: {{ paginator.page }} von {{ paginator.total_pages }}</span>
</li>
{% if paginator.next_page %}
<li class="next">
<a href="{{ site.BASE_PATH }}/page{{ paginator.next_page }}">Vor →</a>
</li>
{% else %}
<li class="next disabled">
<a>Vor →</a>
</li>
{% endif %}
</ul>