aboutsummaryrefslogtreecommitdiffstats
path: root/pelican-bootstrap3/templates/includes/pagination.html
diff options
context:
space:
mode:
authorDaan Debie <d.debie@thenewmotion.com>2015-02-21 23:16:27 +0100
committerDaan Debie <d.debie@thenewmotion.com>2015-02-21 23:16:27 +0100
commit524cfb091d7d3993f81091f0cba9e194951a17a6 (patch)
tree54c01c855e9994fbbfcf40b34cfb2552a020ae52 /pelican-bootstrap3/templates/includes/pagination.html
parent6ce5bf4fae4d65ad9696d5d8f98ec93c4a1f3021 (diff)
downloadpelican-themes-524cfb091d7d3993f81091f0cba9e194951a17a6.zip
pelican-themes-524cfb091d7d3993f81091f0cba9e194951a17a6.tar.gz
pelican-themes-524cfb091d7d3993f81091f0cba9e194951a17a6.tar.bz2
Updated pelican-bootstrap3 to latest version
Diffstat (limited to 'pelican-bootstrap3/templates/includes/pagination.html')
-rw-r--r--pelican-bootstrap3/templates/includes/pagination.html7
1 files changed, 3 insertions, 4 deletions
diff --git a/pelican-bootstrap3/templates/includes/pagination.html b/pelican-bootstrap3/templates/includes/pagination.html
index 2627bb1..9ae4285 100644
--- a/pelican-bootstrap3/templates/includes/pagination.html
+++ b/pelican-bootstrap3/templates/includes/pagination.html
@@ -23,10 +23,9 @@
<li class="prev disabled"><a href="#">&laquo;</a></li>
{% endif %}
{% for num in range( 1, 1 + articles_paginator.num_pages ) %}
- {% set page = articles_paginator.page(num) %}
<li class="{{ 'active' if num == articles_page.number else '' }}"><a
- href="{{ SITEURL }}/{{ page.url }}">{{ num }}</a></li>
- {% endfor %}
+ href="{{ SITEURL }}/{{ page_name }}{{ num if num > 1 else '' }}.html">{{ num }}</a></li>
+ {% endfor %}
{% if articles_page.has_next() %}
<li class="next"><a
href="{{ SITEURL }}/{{ articles_next_page.url }}">&raquo;</a></li>
@@ -35,4 +34,4 @@
{% endif %}
</ul>
{% endif %}
-{% endif %}
+{% endif %} \ No newline at end of file