aboutsummaryrefslogtreecommitdiffstats
path: root/pelican-bootstrap3
diff options
context:
space:
mode:
authorJustin Mayer <entroP@gmail.com>2014-10-31 06:45:39 -0700
committerJustin Mayer <entroP@gmail.com>2014-10-31 06:45:39 -0700
commit6d4054e466ac9293a294d079692162f05fb11157 (patch)
treea25c4d320b295bfb9221c4d7759ace9deef222b6 /pelican-bootstrap3
parent4f930ce5f6691c452307f1c779168051e7024850 (diff)
parenta6bcb10fac97726daa5dab7d53d2f28274b7f98c (diff)
downloadpelican-themes-6d4054e466ac9293a294d079692162f05fb11157.zip
pelican-themes-6d4054e466ac9293a294d079692162f05fb11157.tar.gz
pelican-themes-6d4054e466ac9293a294d079692162f05fb11157.tar.bz2
Merge pull request #267 from lgiordani/fix_category_feeds
pelican-bootstrap3: Fix category feeds and pagination
Diffstat (limited to 'pelican-bootstrap3')
-rw-r--r--pelican-bootstrap3/templates/base.html2
-rw-r--r--pelican-bootstrap3/templates/includes/pagination.html7
2 files changed, 5 insertions, 4 deletions
diff --git a/pelican-bootstrap3/templates/base.html b/pelican-bootstrap3/templates/base.html
index 070dad2..d71a5c5 100644
--- a/pelican-bootstrap3/templates/base.html
+++ b/pelican-bootstrap3/templates/base.html
@@ -100,7 +100,7 @@
{% endif %}
{% if category and CATEGORY_FEED_ATOM %}
- <link href="{{ SITEURL }}/{{ CATEGORY_FEED_ATOM|format(category) }}" type="application/atom+xml" rel="alternate"
+ <link href="{{ SITEURL }}/{{ CATEGORY_FEED_ATOM|format(category.slug) }}" type="application/atom+xml" rel="alternate"
title="{{ SITENAME }} {{ category }} ATOM Feed"/>
{% endif %}
diff --git a/pelican-bootstrap3/templates/includes/pagination.html b/pelican-bootstrap3/templates/includes/pagination.html
index 9ae4285..2627bb1 100644
--- a/pelican-bootstrap3/templates/includes/pagination.html
+++ b/pelican-bootstrap3/templates/includes/pagination.html
@@ -23,9 +23,10 @@
<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_name }}{{ num if num > 1 else '' }}.html">{{ num }}</a></li>
- {% endfor %}
+ href="{{ SITEURL }}/{{ page.url }}">{{ num }}</a></li>
+ {% endfor %}
{% if articles_page.has_next() %}
<li class="next"><a
href="{{ SITEURL }}/{{ articles_next_page.url }}">&raquo;</a></li>
@@ -34,4 +35,4 @@
{% endif %}
</ul>
{% endif %}
-{% endif %} \ No newline at end of file
+{% endif %}