From e5343fbc34514b06a09b661f2ba3a74b84ba9673 Mon Sep 17 00:00:00 2001 From: Alexis Metaireau Date: Fri, 29 Oct 2010 02:46:20 +0100 Subject: [PATCH] Pass the category to the articles too. --- pelican/bloggenerator.py | 3 ++- setup.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pelican/bloggenerator.py b/pelican/bloggenerator.py index d09de155..d6296c1e 100644 --- a/pelican/bloggenerator.py +++ b/pelican/bloggenerator.py @@ -122,7 +122,8 @@ def generate_blog(path=None, theme=None, output_path=None, markup=None, category=cat, articles=categories[cat]) for article in articles: generate('%s' % article.url, - templates['article'], context, article=article) + templates['article'], context, article=article, + category=article.category) # copy static paths to output for path in context['STATIC_PATHS']: diff --git a/setup.py b/setup.py index cb7e049d..db4bf7ab 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ if sys.version_info < (2,7): setup( name = "pelican", - version = '1.2.4', + version = '1.2.5', url = 'http://hg.lolnet.org/pelican/', author = 'Alexis Metaireau', author_email = 'alexis@notmyidea.org',