-
Notifications
You must be signed in to change notification settings - Fork 13
/
posts.html
32 lines (30 loc) · 966 Bytes
/
posts.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
---
title: Blog Posts
---
<div class="home">
<ul class="post-list">
{% for post in paginator.posts %}
<li>
<span class="post-meta">{{ post.date }}</span>
<h2>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
</h2>
{{ post.excerpt }}
</li>
{% endfor %}
</ul>
</div>
<nav id="pagination">
<ul class="pagination clearfix">
{% if paginator.next_page %}
<li class="prev"><a href="/pages/{{ paginator.next_page }}" title="Ältere Beiträge">← Ältere Beiträge</a></li>
{% endif %}
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<li class="next"><a href="/" title="Neuere Beiträge">Neuere Beiträge →</a></li>
{% else %}
<li class="next"><a href="/pages/{{ paginator.previous_page }}" title="Neuere Beiträge">Neuere Beiträge →</a></li>
{% endif %}
{% endif %}
</ul>
</nav>