Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 1 | {% if DEFAULT_PAGINATION %} |
Giulio Fidente | ebb4c7a | 2013-10-20 01:45:10 +0200 | [diff] [blame] | 2 | <div id="paginator"> |
pR0Ps | 981a839 | 2013-12-11 13:11:32 -0500 | [diff] [blame] | 3 | <span id="left"> |
pR0Ps | 721949b | 2013-12-11 13:09:22 -0500 | [diff] [blame] | 4 | {% if articles_page.has_previous() %} |
| 5 | {% set num = articles_page.previous_page_number() %} |
pR0Ps | 065362a | 2013-12-19 21:18:03 -0500 | [diff] [blame] | 6 | <a href="{{ SITEURL }}/{{ page_name }}{{ num if num > 1 else '' }}.html"><i class="fa fa-arrow-circle-left"></i> Prev</a> |
Giulio Fidente | d5f389d | 2013-03-22 23:36:06 +0100 | [diff] [blame] | 7 | {% endif %} |
pR0Ps | 981a839 | 2013-12-11 13:11:32 -0500 | [diff] [blame] | 8 | </span> |
Giulio Fidente | d5f389d | 2013-03-22 23:36:06 +0100 | [diff] [blame] | 9 | |
pR0Ps | 981a839 | 2013-12-11 13:11:32 -0500 | [diff] [blame] | 10 | {% for num in range( 1, 1 + articles_paginator.num_pages ) %} |
| 11 | <a href="{{ SITEURL }}/{{ page_name }}{{ num if num > 1 else '' }}.html">{{'[' + num|string + ']' if num == articles_page.number else ' ' + num|string + ' ' }}</a> |
| 12 | {% endfor %} |
| 13 | |
| 14 | <span id="right"> |
pR0Ps | 721949b | 2013-12-11 13:09:22 -0500 | [diff] [blame] | 15 | {% if articles_page.has_next() %} |
pR0Ps | 065362a | 2013-12-19 21:18:03 -0500 | [diff] [blame] | 16 | <a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.next_page_number() }}.html">Next <i class="fa fa-arrow-circle-right"></i></a> |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 17 | {% endif %} |
pR0Ps | 981a839 | 2013-12-11 13:11:32 -0500 | [diff] [blame] | 18 | </span> |
Giulio Fidente | ebb4c7a | 2013-10-20 01:45:10 +0200 | [diff] [blame] | 19 | </div> |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 20 | {% endif %} |