-
Notifications
You must be signed in to change notification settings - Fork 64
/
artikel.html
60 lines (58 loc) · 1.85 KB
/
artikel.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
---
title: Artikel
header: light
sitemap: false
permalink: /artikel/
canonical_url: /artikel/view-all/
layout: "page"
pagination:
enabled: true
per_page: 6
trail:
before: 2
after: 2
---
{% for post in paginator.posts %}
{% include shared/_post.html %}
{% endfor %}
<nav aria-label="Paginierung">
<ul class="pagination justify-content-center">
{% if paginator.previous_page %}
<li class="page-item">
<a class="page-link" href="{{ paginator.previous_page_path }}" aria-label="Zurück">
<span aria-hidden="true">«</span>
<span class="visually-hidden">Zurück</span>
</a>
</li>
{% else %}
<li class="page-item disabled">
<a class="page-link" href="{{ paginator.previous_page_path }}" aria-label="Zurück">
<span aria-hidden="true">«</span>
<span class="visually-hidden">Zurück</span>
</a>
</li>
{% endif %}
{% if paginator.page_trail %}
{% for trail in paginator.page_trail %}
<li class="page-item {% if page.url == trail.path %}disabled active{% endif %}">
<a class="page-link" href="{{ trail.path | prepend: site.baseurl | replace: '/index.html', '/' }}" title="{{trail.title}}">{{ trail.num }}</a>
</li>
{% endfor %}
{% endif %}
{% if paginator.next_page %}
<li class="page-item">
<a class="page-link" href="{{ paginator.next_page_path }}" aria-label="Weiter">
<span aria-hidden="true">»</span>
<span class="visually-hidden">Weiter</span>
</a>
</li>
{% else %}
<li class="page-item disabled">
<a class="page-link" href="{{ paginator.next_page_path }}" aria-label="Weiter">
<span aria-hidden="true">»</span>
<span class="visually-hidden">Weiter</span>
</a>
</li>
{% endif %}
</ul>
</nav>