Mercurial > hg > Blog
comparison themes/tuxlite_tbs/templates/pagination.html @ 9:6e2bcaecf3ec
include the theme locally to avoid any dependency on the pelican-themes git repo. Those guys don't incorporate the fixes as quickly as I need plus, I already changed the theme to incorporate the juvia comments.
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Mon, 01 Jul 2013 04:09:23 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
8:587302b65fb6 | 9:6e2bcaecf3ec |
---|---|
1 <div class="pagination"> | |
2 <ul> | |
3 {% if articles_page.has_previous() %} | |
4 {% set num = articles_page.previous_page_number() %} | |
5 <li class="prev"><a href="{{ SITEURL }}/{{ page_name }}{{ num if num > 1 else '' }}.html">← Previous</a></li> | |
6 {% else %} | |
7 <li class="prev disabled"><a href="#">← Previous</a></li> | |
8 {% endif %} | |
9 | |
10 {% for num in range( 1, 1 + articles_paginator.num_pages ) %} | |
11 <li class="{{ 'active' if num == articles_page.number else '' }}"><a href="{{ SITEURL }}/{{ page_name }}{{ num if num > 1 else '' }}.html">{{ num }}</a></li> | |
12 {% endfor %} | |
13 | |
14 {% if articles_page.has_next() %} | |
15 <li class="next"><a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.next_page_number() }}.html">Next →</a></li> | |
16 {% else %} | |
17 <li class="next disabled"><a href="#">→ Next</a></li> | |
18 {% endif %} | |
19 | |
20 </ul> | |
21 </div> |