forked from workshops-de/angular.de
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathartikel.html
78 lines (72 loc) · 2.58 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
---
title: Artikel
noindex: true
sitemap: false
permalink: /artikel/
layout: "page"
pagination:
enabled: true
per_page: 5
trail:
before: 2
after: 2
---
<form action="/suche/" method="get" class="hidden-md-up mb-2">
<input type="text" class="form-control article-search" name="q" placeholder="Artikel durchsuchen">
</form>
<div class="row">
<div class="col-md-8">
{% for post in paginator.posts %}
{% include _article.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="sr-only">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="sr-only">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{% 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="sr-only">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="sr-only">Weiter</span>
</a>
</li>
{% endif %}
</ul>
</nav>
</div>
<div class="col-md-4">
<form action="/suche/" method="get" class="hidden-sm-down mb-4">
<input type="text" class="form-control article-search" name="q" placeholder="Artikel durchsuchen">
</form>
<h2 class="h3">Tutorials</h2>
{% include _sidebar_posts.html contains='tutorial' %}
<a class="btn btn-secondary btn-block mb-4" href="/artikel/alle/">Alle Artikel anzeigen</a>
</div>
</div>