manbytesgnu_site

Source files for manbytesgnu.org
git clone git://holbrook.no/manbytesgnu_site.git
Info | Log | Files | Refs

pagination.html (732B)


      1 {% if DEFAULT_PAGINATION %}
      2   {% set first_page = articles_paginator.page(1) %}
      3   {% set last_page = articles_paginator.page(articles_paginator.num_pages) %}
      4   <nav id="pages">
      5     <ul>
      6       {% if articles_page.has_previous() %}
      7         <li><a href="{{ SITEURL }}/{{ first_page.url }}">&Lang;</a></li>
      8         <li><a href="{{ SITEURL }}/{{ articles_previous_page.url }}">&lang;</a></li>
      9       {% endif %}
     10       <li>Page {{ articles_page.number }} / {{ articles_paginator.num_pages }}</li>
     11       {% if articles_page.has_next() %}
     12         <li><a href="{{ SITEURL }}/{{ articles_next_page.url }}">&rang;</a></li>
     13         <li><a href="{{ SITEURL }}/{{ last_page.url }}">&Rang;</a></li>
     14       {% endif %}
     15     </ul>
     16   </nav>
     17 {% endif %}