Permalink
Browse files

Category feeds are saved in a different location than their slug.

  • Loading branch information...
1 parent bda577a commit 362d34211e7472d89f225c40a6165c3af8c9e649 @johnboxall johnboxall committed Feb 8, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 pelican/plugins/categories.py
@@ -36,6 +36,10 @@ def __init__(self, name, settings):
for key, value in attributes.items():
setattr(self, key, value)
+ # Our feeds don't live in the same place as our categories, so create a
+ # custom `feed_slug` to store where the feed should live.
+ self.feed_slug = self.slug.rsplit("/")[-1]
+
def fix_article_metadata(generator, metadata, source_path):
"""

0 comments on commit 362d342

Please sign in to comment.