This repository has been archived by the owner on Jan 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
128 lines (116 loc) · 4.39 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
---
layout: inner
type: index
permalink:
description: >-
Der Blog des Wiesbadener CoderDojos.
Lies ihn. Lerne etwas. Lass dich inspirieren.
---
<div id="404" class="gone post homesite">
<h2>Wir haben dich weitergeleitet</h2>
<p>
Wir konnten die Seite, die du aufrufen wolltest, nicht finden.<br />
Daher haben wir dich auf die Übersichtsseite geleitet.<br />
<small>
<a href="https://de.wikipedia.org/wiki/Toter_Link" class="alt">Fehler 404</a> •
<a href="https://github.com/koenidv/blog.coderdojo-wiesbaden.de/issues/new" class="alt">Fehler melden</a> •
<a href="/" class="alt">Meldung schließen</a>
</small>
</p>
</div>
<div class="posts">
{% assign counter = 0 %}
{% for post in paginator.posts %}
{% if counter == 1 %}
<div class="post homesite" data-aos="fade-up" data-aos-delay="50">
{% else %}
<div class="post homesite" data-aos="fade-up">
{% endif %}
<h1 class="post-title">
<a href="{{ post.url }}" class="preview">
{{ post.title }}
</a>
</h1>
<span class="post-details">
{% assign month = post.date | date: "%-m" %}
{% case month %}
{% 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>
<div class="post-preview">
{{ post.content | split:"<!--break-->" | first }}
</div>
{% if post.image != nil %}
<a href="{{ post.url }}" class="preview">
<img src="{{ post.image }}" class="post-image" />
</a>
{% endif %}
{% if post.content contains "<!--break-->" %}
{% if post.content contains "<!--break--><!--n-->" %}
<br />
<br />
{% endif %}
<br />
<a href="{{ post.url }}" class="preview">Weiterlesen...</a>
{% else %}
<br />
<a href="{{ post.url }}" class="preview">Beitrag anzeigen →</a>
{% endif %}
</div>
{% assign counter = counter | plus: 1 %}
{% endfor %}
</div>
<!--Not animated using data-aos="fade-up" as it is not possible on mobile to scroll far enough down to show it-->
<div class="pagination">
{% if paginator.next_page == falsy and paginator.previous_page == falsy %}
<p>Das sind alle Beiträge.</p>
{% elsif paginator.next_page != falsy and paginator.previous_page == falsy %}
<a class="pagination-item older fullwidth" href="{{ site.baseurl }}page{{paginator.next_page}}">Ältere Beiträge
anzeigen →</a>
{% elsif paginator.next_page != falsy and paginator.previous_page != falsy %}
{% if paginator.page == 2 %}
<a class="pagination-item newer" href="{{ site.baseurl }}">← Neuer</a>
{% else %}
<a class="pagination-item newer" href="{{ site.baseurl }}page{{paginator.previous_page}}">← Neuer</a>
{% endif %}
<a class="pagination-item older" href="{{ site.baseurl }}page{{paginator.next_page}}">Älter →</a>
{% elsif paginator.next_page == falsy and paginator.previous_page != falsy %}
{% if paginator.page == 2 %}
<a class="pagination-item newer" href="{{ site.baseurl }}">← Neuer</a>
{% else %}
<a class="pagination-item newer" href="{{ site.baseurl }}page{{paginator.previous_page}}">← Neuer</a>
{% endif %}
<span class="pagination-item older">Älter →</span>
{% else %}
<!-- This state should never be reached but is here just in case -->
<a class="pagination-item newer fullwidth" href="{{ site.baseurl }}">← Zurück zum Start</a>
{% endif %}
</div>
<script>
if (window.location.href.includes("?404")) {
document.getElementById("404").classList.remove("gone");
}
/*if ('serviceWorker' in navigator) {
window.addEventListener('load', function() {
navigator.serviceWorker.register('/serviceworker.js').then(function(registration) {
// Registration was successful
console.log('ServiceWorker registration successful with scope: ', registration.scope);
}, function(err) {
// registration failed :(
console.log('ServiceWorker registration failed: ', err);
});
});
}*/
</script>