-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpostlist.html
35 lines (32 loc) · 872 Bytes
/
postlist.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
---
layout: post-list
---
{% for post in paginator.posts %}
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">
<article>
<p class="date">{{ post.date | date: "%Y-%m-%d" }}</p>
<h2>
{{ post.title }}
</h2>
{{ post.content }}
</article>
</a>
{% endfor %}
<!-- Pagination links -->
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | prepend: site.baseurl }}" class="previous">
←
</a>
{% else %}
<span class="previous">Précédente</span>
{% endif %}
<span class="page_number ">
Page {{ paginator.page }} de {{ paginator.total_pages }}
</span>
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | prepend: site.baseurl }}" class="next">→</a>
{% else %}
<span class="next ">Next</span>
{% endif %}
</div>