We pass lists, not dicst!

This commit is contained in:
Alexis Métaireau 2012-10-30 18:57:06 +01:00
commit bfc963a065
2 changed files with 6 additions and 7 deletions

View file

@ -60,9 +60,10 @@ articles The list of articles, ordered descending by date
etc.) etc.)
dates The same list of articles, but ordered by date, dates The same list of articles, but ordered by date,
ascending ascending
tags A key-value dict containing the tags (the keys) and tags A list of (tag, articles) tuples, containing all
the list of respective articles (the values) the tags.
categories A key-value dict containing the categories (keys) categories A list of (category, articles) tuples, containing
all the categories.
and the list of respective articles (values) and the list of respective articles (values)
pages The list of pages pages The list of pages
============= =================================================== ============= ===================================================

View file

@ -42,7 +42,6 @@ class Generator(object):
os.path.join(self.theme, 'templates'))) os.path.join(self.theme, 'templates')))
self._templates_path += self.settings.get('EXTRA_TEMPLATES_PATHS', []) self._templates_path += self.settings.get('EXTRA_TEMPLATES_PATHS', [])
theme_path = os.path.dirname(os.path.abspath(__file__)) theme_path = os.path.dirname(os.path.abspath(__file__))
simple_loader = FileSystemLoader(os.path.join(theme_path, simple_loader = FileSystemLoader(os.path.join(theme_path,
@ -283,7 +282,6 @@ class ArticlesGenerator(Generator):
self.generate_articles(write) self.generate_articles(write)
self.generate_direct_templates(write) self.generate_direct_templates(write)
# and subfolders after that # and subfolders after that
self.generate_tags(write) self.generate_tags(write)
self.generate_categories(write) self.generate_categories(write)