-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
52 lines (45 loc) · 1.3 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
44
45
46
47
48
49
50
51
52
---
layout: default
---
<div class="posts">
{% for post in paginator.posts %}
{% unless post.draft %}
<article class="post">
<span class="post-date">{{ post.date | date: "%Y-%m-%d" }}</span>
<h2><a href="{{ site.url }}{{ post.url }}">{{ post.title }}</a></h2>
<div class="entry">
{{ post.excerpt }}
</div>
<a href="{{ site.url }}{{ post.url }}" class="read-more">Read More</a>
</article>
<hr/>
{% endunless %}
{% endfor %}
</div>
<ul class="pager">
{% if paginator.previous_page %}
<li class="previous">
{% if paginator.previous_page == 1 %}
<a href="{{ site.url }}/">← Next</a>
{% else %}
<a href="{{ site.url }}/{{ site.paginate_path | replace: ':num', paginator.previous_page }}">← Next</a>
{% endif %}
</li>
{% else %}
<li class="previous disabled">
<a>← Next</a>
</li>
{% endif %}
<li>
<span class="page_number">Page: {{ paginator.page }} sur {{ paginator.total_pages }}</span>
</li>
{% if paginator.next_page %}
<li class="next">
<a href="{{ site.url }}/{{ site.paginate_path | replace: ':num', paginator.next_page }}">Previous →</a>
</li>
{% else %}
<li class="next disabled">
<a>Previous →</a>
</li>
{% endif %}
</ul>