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 | 69c71b2 | 2014-10-01 20:32:38 -0400 | [diff] [blame] | 3 | <span id="left"> |
| 4 | {% if articles_page.has_previous() %} |
| 5 | {% set num = articles_page.previous_page_number() %} |
| 6 | <a href="{{ SITEURL }}/{{ page_name }}{{ num if num > 1 else '' }}.html"><i class="fa fa-arrow-circle-left"></i> Prev</a> |
| 7 | {% endif %} |
| 8 | </span> |
| 9 | <span id="right"> |
| 10 | {% if articles_page.has_next() %} |
| 11 | <a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.next_page_number() }}.html">Next <i class="fa fa-arrow-circle-right"></i></a> |
| 12 | {% endif %} |
| 13 | </span> |
| 14 | <div> |
| 15 | {% for num in range( 1, 1 + articles_paginator.num_pages ) %} |
| 16 | <a href="{{ SITEURL }}/{{ page_name }}{{ num if num > 1 else '' }}.html">{{'[' + num|string + ']' if num == articles_page.number else ' ' + num|string + ' ' }}</a> |
| 17 | {% endfor %} |
| 18 | </div> |
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 %} |