-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpageNav.html
More file actions
18 lines (18 loc) · 847 Bytes
/
Copy pathpageNav.html
File metadata and controls
18 lines (18 loc) · 847 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<nav class="pagination">
<input type="hidden" id="total_pages" value="{{ paginator.total_pages }}">
<input type="hidden" id="current_pages" value="{{ paginator.page }}">
<input type="hidden" id="base_url" value="{{ "/" | relative_url }}">
<div class="page-links">
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<a href="{{ "/" | relative_url }}" class="page-link" title="Previous Page">«</a>
{% else %}
<a href="/page{{ paginator.previous_page }}/" class="page-link" title="Previous Page">«</a>
{% endif %}
{% endif %}
<div id="page-link-container"></div>
{% if paginator.next_page %}
<a href="/page{{ paginator.next_page }}/" class="page-link">»</a>
{% endif %}
</div>
</nav>