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"> |
Giulio Fidente | d5f389d | 2013-03-22 23:36:06 +0100 | [diff] [blame] | 3 | {% if articles_page.has_next() %} |
Giulio Fidente | 62d1ae8 | 2013-03-27 01:18:57 +0100 | [diff] [blame] | 4 | <a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.next_page_number() }}.html" class="button_accent">← Older Posts</a> |
Giulio Fidente | d5f389d | 2013-03-22 23:36:06 +0100 | [diff] [blame] | 5 | {% endif %} |
| 6 | |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 7 | {% if articles_page.has_previous() %} |
| 8 | {% if articles_page.previous_page_number() == 1 %} |
Giulio Fidente | 62d1ae8 | 2013-03-27 01:18:57 +0100 | [diff] [blame] | 9 | <a href="{{ SITEURL }}/{{ page_name }}.html" class="button_accent">Newer Posts →</a> |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 10 | {% else %} |
Giulio Fidente | 62d1ae8 | 2013-03-27 01:18:57 +0100 | [diff] [blame] | 11 | <a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.previous_page_number() }}.html" class="button_accent">Newer Posts →</a> |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 12 | {% endif %} |
| 13 | {% endif %} |
Giulio Fidente | ebb4c7a | 2013-10-20 01:45:10 +0200 | [diff] [blame] | 14 | </div> |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 15 | {% endif %} |