pagination.html 633 B

12345678910111213141516
  1. {% if DEFAULT_PAGINATION %}
  2. <p class="paginator">
  3. {% if articles_page.has_previous() %}
  4. {% if articles_page.previous_page_number() == 1 %}
  5. <a href="{{ SITEURL }}/{{ page_name }}.html">&laquo;</a>
  6. {% else %}
  7. <a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.previous_page_number() }}.html">&laquo;</a>
  8. {% endif %}
  9. {% endif %}
  10. Page {{ articles_page.number }} / {{ articles_paginator.num_pages }}
  11. {% if articles_page.has_next() %}
  12. <a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.next_page_number() }}.html">&raquo;</a>
  13. {% endif %}
  14. </p>
  15. {% endif %}