mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Pass the category to the articles too.
This commit is contained in:
parent
934f1e41db
commit
e5343fbc34
2 changed files with 3 additions and 2 deletions
|
|
@ -122,7 +122,8 @@ def generate_blog(path=None, theme=None, output_path=None, markup=None,
|
||||||
category=cat, articles=categories[cat])
|
category=cat, articles=categories[cat])
|
||||||
for article in articles:
|
for article in articles:
|
||||||
generate('%s' % article.url,
|
generate('%s' % article.url,
|
||||||
templates['article'], context, article=article)
|
templates['article'], context, article=article,
|
||||||
|
category=article.category)
|
||||||
|
|
||||||
# copy static paths to output
|
# copy static paths to output
|
||||||
for path in context['STATIC_PATHS']:
|
for path in context['STATIC_PATHS']:
|
||||||
|
|
|
||||||
2
setup.py
2
setup.py
|
|
@ -7,7 +7,7 @@ if sys.version_info < (2,7):
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name = "pelican",
|
name = "pelican",
|
||||||
version = '1.2.4',
|
version = '1.2.5',
|
||||||
url = 'http://hg.lolnet.org/pelican/',
|
url = 'http://hg.lolnet.org/pelican/',
|
||||||
author = 'Alexis Metaireau',
|
author = 'Alexis Metaireau',
|
||||||
author_email = 'alexis@notmyidea.org',
|
author_email = 'alexis@notmyidea.org',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue