-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.html
More file actions
40 lines (36 loc) · 1.34 KB
/
index.html
File metadata and controls
40 lines (36 loc) · 1.34 KB
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
---
layout: default
---
<div class="posts content-block _padding-none">
<ul class="pl0 lsn mb0 post-list">
{% for post in paginator.posts %}
{% include posts.html %}
{% endfor %}
</ul>
</div>
<!-- Pagination links -->
<nav aria-label="post navigation">
{% if paginator.total_pages > 1 %}
<ul class="pagination lsn pl0 clearfix">
{% if paginator.previous_page %}
<li><a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">{% include svg/arrow-left.svg %}</a></li>
{% else %}
<li><span class="arrow no-select">{% include svg/arrow-left.svg %}</span></li>
{% endif %}
{% for page in (1..paginator.total_pages) %}
{% if page == paginator.page %}
<li class="active"><span>{{ page }}</span></li>
{% elsif page == 1 %}
<li><a href="/">{{ page }}</a></li>
{% else %}
<li><a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a></li>
{% endif %}
{% endfor %}
{% if paginator.next_page %}
<li><a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">{% include svg/arrow-right.svg %}</a></li>
{% else %}
<li><span class="arrow no-select">{% include svg/arrow-right.svg %}</span></li>
{% endif %}
</ul>
{% endif %}
</nav>