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