p0c-website

Proof of concepts for fun and profit
git clone https://git.in0rdr.ch/p0c-website.git
Log | Files | Refs | Pull requests |Archive | README | LICENSE

pagination.html (884B)


      1 {% if paginator.total_pages > 1 %}
      2 <nav class="pagination" role="pagination">
      3   <ul>
      4     {% assign url = site.baseurl | append: "/" %}
      5     {% if paginator.previous_page %}
      6       {% if paginator.previous_page > 1 %}
      7         {% assign prev = 'page/' | append: paginator.previous_page %}
      8       {% endif %}
      9       <li><a class="prev" href="{{ url | append: prev }}" title="Articles new">&laquo; Prev</a></li>
     10     {% else %}
     11       <li><span class="prev disabled">&laquo; Prev</span></li>
     12     {% endif %}
     13     <li><span class="page-number">Page {{paginator.page}} of {{paginator.total_pages}}</span></li>
     14     {% if paginator.next_page %}
     15       <li><a class="next" href="{{ url | append: 'page/' | append: paginator.next_page }}" title="Articles old">Next &raquo;</a></li>
     16     {% else %}
     17       <li><span class="next disabled">Next &raquo;</span></li>
     18     {% endif %}
     19   </ul>
     20 </nav>
     21 {% endif %}