/
archive.html
32 lines (31 loc) · 1023 Bytes
/
archive.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:
license: MIT
---
<!DOCTYPE html>
<html>
<head>
<title>{{ page.title }}</title>
</head>
<body>
{% for post in page.archive.posts reversed %}
<article>
<h2><a href="{{post.url}}">{{ post.title }}</a></h2>
</article>
{% endfor %}
<!-- Pagination links -->
<nav class="pagination">
{% if page.archive.paginator.previous_page %}
<a href="{{ page.archive.paginator.previous_page_path }}" class="previous">Previous</a>
{% else %}
<span class="previous">Previous</span>
{% endif %}
<span class="page_number">Page: {{ page.archive.paginator.page }} of {{ page.archive.paginator.total_pages }}</span>
{% if page.archive.paginator.next_page %}
<a href="{{ page.archive.paginator.next_page_path }}" class="next">Next</a>
{% else %}
<span class="next">Next</span>
{% endif %}
</nav>
</body>
</html>