check in (clean slate for Saturday)
[Ultimately_Untrue_Thought.git] / theme / templates / pagination.inc.html
1 {% if DEFAULT_PAGINATION %}
2   <div class="pagination">
3     {% if articles_page.has_previous() %}
4       {% if articles_page.previous_page_number() == 1 %}
5         {% if page_name == "index" %}
6           <a href="{{ SITEURL }}/">&laquo;</a>
7         {% else %}
8           <a href="{{ SITEURL }}/{{ page_name }}">&laquo;</a>
9         {% endif %}
10       {% else %}
11           {% if page_name == "index" %}
12             <a href="{{ SITEURL }}/page/{{ articles_page.previous_page_number() }}/">&laquo;</a>
13           {% else %}
14             <a href="{{ SITEURL }}/{{ page_name }}page/{{ articles_page.previous_page_number() }}/">&laquo;</a>
15           {% endif %}
16         {% endif %}
17     {% endif %}
18     Page {{ articles_page.number }} / {{ articles_paginator.num_pages }}
19     {% if articles_page.has_next() %}
20       {% if page_name == "index" %}
21         <a href="{{ SITEURL }}/page/{{ articles_page.next_page_number() }}/">&raquo;</a>
22       {% else %}
23         <a href="{{ SITEURL }}/{{ page_name }}page/{{ articles_page.next_page_number() }}/">&raquo;</a>
24       {% endif %}
25     {% endif %}
26 </div>
27 {% endif %}