Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 1 | {% if DEFAULT_PAGINATION %} |
Giulio Fidente | 91c1d45 | 2013-03-22 15:15:17 +0100 | [diff] [blame] | 2 | <p id="paginator"> |
Giulio Fidente | d5f389d | 2013-03-22 23:36:06 +0100 | [diff] [blame^] | 3 | |
| 4 | {% if articles_page.has_next() %} |
| 5 | <a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.next_page_number() }}.html" class="button_accent">← Older</a> |
| 6 | {% endif %} |
| 7 | |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 8 | {% if articles_page.has_previous() %} |
| 9 | {% if articles_page.previous_page_number() == 1 %} |
Giulio Fidente | d5f389d | 2013-03-22 23:36:06 +0100 | [diff] [blame^] | 10 | <a href="{{ SITEURL }}/{{ page_name }}.html" class="button_accent">Newer →</a> |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 11 | {% else %} |
Giulio Fidente | d5f389d | 2013-03-22 23:36:06 +0100 | [diff] [blame^] | 12 | <a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.previous_page_number() }}.html" class="button_accent">Newer →</a> |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 13 | {% endif %} |
| 14 | {% endif %} |
Giulio Fidente | d5f389d | 2013-03-22 23:36:06 +0100 | [diff] [blame^] | 15 | |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 16 | </p> |
| 17 | {% endif %} |