pagination.inc.html 638 B

123456789101112131415
  1. {% if DEFAULT_PAGINATION %}
  2. <div class="pagination">
  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. </div>
  15. {% endif %}