Skip to content

Commit

Permalink
Merge pull request getpelican#267 from lgiordani/fix_category_feeds
Browse files Browse the repository at this point in the history
pelican-bootstrap3: Fix category feeds and pagination
  • Loading branch information
justinmayer committed Oct 31, 2014
2 parents 4f930ce + a6bcb10 commit 6d4054e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pelican-bootstrap3/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

Expand Down
7 changes: 4 additions & 3 deletions pelican-bootstrap3/templates/includes/pagination.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -34,4 +35,4 @@
{% endif %}
</ul>
{% endif %}
{% endif %}
{% endif %}

0 comments on commit 6d4054e

Please sign in to comment.