-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
43 lines (40 loc) · 1.46 KB
/
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
37
38
39
40
41
42
43
---
layout: default
title: Andreas Buttenschoen
---
<div class="posts">
<ul class="posts__list">
{% for post in paginator.posts %}
<li>
{% if post.external %}<a href="{{ post.external }}" target="_blank">
{% else %}<a href="{{ site.url }}{{ post.url }}">{% endif %}
<h2 class="posts__title">{{ post.title }}</h2>
<span class="posts__date">{{ post.date | date: "%B %e, %Y" }}</span>
</a>
</li>
{% endfor %}
</ul>
{% if paginator.total_pages > 1 %}
<div class="pagination clear">
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<a href="{{ site.url }}/" class="pagination--previous">
<i class="fa fa-angle-double-left"></i>
Previous
</a>
{% else %}
<a href="{{ site.url }}/page{{paginator.previous_page}}" class="pagination--previous">
<i class="fa fa-angle-double-left"></i>
Previous
</a>
{% endif %}
{% endif %}
{% if paginator.next_page %}
<a href="{{ site.url }}/page{{paginator.next_page}}" class="pagination--next">
Next
<i class="fa fa-angle-double-right"></i>
</a>
{% endif %}
</div>
{% endif %}
</div>