-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
51 lines (48 loc) · 1.88 KB
/
Copy pathindex.html
File metadata and controls
51 lines (48 loc) · 1.88 KB
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
---
layout: start
image: assets/images/bg.jpeg
pagination:
enabled: true
---
<h1>Neueste Beiträge</h1>
<ul class="preview">
{% for post in paginator.posts %}
<li class="preview">
<a title="{{ post.title }}" href="{{ post.url | relative_url }}">{{ post.title }}</a>
<br>
<span class="author">
{{ post.date | date: "%d.%m.%Y" }} // {% if post.author %} {{ post.author }} {% endif %}
<!-- Start Logview-->
{% if jekyll.environment != "production" %}
{% if post.published == false %}
<span class="mini-led-red views" data-page="{{ post.title | escape }}"> </span>
{% else %}
<span class="mini-led-green views" data-page="{{ post.title | escape }}"> </span>
{% endif %}
{% endif %}
<!-- End Logview -->
</span>
<p class="preview">
{{ post.content | strip_html | strip_newlines | split: ' ' | slice: 0,15 | join: ' ' }} …
<a href="{{ post.url | relative_url }}">Weiterlesen</a>
</p>
</li>
{% endfor %}
</ul>
<nav class="pagination">
{% if paginator.previous_page %}
<a class="prev" title="Jüngere Beiträge" href="{{ paginator.previous_page_path | relative_url }}">« Jüngere Beiträge</a>
{% endif %}
{% if paginator.next_page %}
<a class="next" title="Ältere Beiträge" href="{{ paginator.next_page_path | relative_url }}">Ältere Beiträge »</a>
{% endif %}
</nav>
<!-- das lädt das JavaScript, welches im Ordner _include liegen soll
Dieses Script bezieht die Daten aus der persönlichen Datenbank und füllt die Werte automatisch aus.
class="views" ist hier der entscheidende Punkt, welcher befüllt wird.
Der besseren Übersicht wegen habe ich die (meine) komplette Startseite hier veröffentlicht.
So könnt ihr sehen was angepasst werden muss
-->
{% if jekyll.environment != "production" %}
{% include js-ministat.html %}
{% endif %}