/
index.html
36 lines (27 loc) · 862 Bytes
/
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
---
title: Mein Blog
layout: page
permalink: /posts/
---
{% for post in paginator.posts %}
<a class="card" href="{{post.url}}">
<img class="card-img-top" src="{{post.background}}">
<div class="card-body">
<h4 class="card-title">{{post.title}}</h4>
<p class="card-text">{{post.excerpt}}</p>
</div>
</a>
<hr>
{% endfor %}
<!-- Pager -->
{% if paginator.total_pages > 1 %}
<div class="clearfix">
{% if paginator.previous_page %}
<a class="btn btn-primary float-left" href="{{ paginator.previous_page_path }}">←
Ältere <span class="d-none d-md-inline"> Beiträge</span></a>
{% endif %}
{% if paginator.next_page %}
<a class="btn btn-primary float-right" href="{{ paginator.next_page_path }}">Neuere <span class="d-none d-md-inline"> Beiträge</span> →</a>
{% endif %}
</div>
{% endif %}