-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
38 lines (37 loc) · 1.12 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
---
layout: default
title: Home
---
{% for post in paginator.posts %}
<article class="spaced {% if forloop.last != true %}separated{% endif %}">
<p>{{ post.date | date_to_long_string }}</p>
<header>
<h2>
<a href="{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a>
</h2>
</header>
<p>{{ post.abstract }}</p>
</article>
{% endfor %}
{% if paginator.total_pages > 1 %}
<ol class="nav pagination spaced">
<li class="pagination__prev">
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<a href="/">« Previous</a>
{% else %}
<a href="/page{{paginator.previous_page}}">« Previous</a>
{% endif %}
{% else %}
Previous
{% endif %}
</li>
<li class="pagination__next">
{% if paginator.next_page %}
<a href="/page{{paginator.next_page}}">Next »</a>
{% else %}
Next
{% endif %}
</li>
</ol>
{% endif %}