Pass the category to the articles too.

This commit is contained in:
Alexis Metaireau 2010-10-29 02:46:20 +01:00
commit e5343fbc34
2 changed files with 3 additions and 2 deletions

View file

@ -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']:

View file

@ -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',