1
0
Fork 0
forked from github/pelican

merge with master

This commit is contained in:
Alexis Metaireau 2012-05-06 02:43:13 +02:00
commit 8a842c0de7
2 changed files with 11 additions and 3 deletions

View file

@ -303,10 +303,12 @@ class ArticlesGenerator(Generator):
# order the categories per name
self.categories = list(self.categories.items())
self.categories.sort(reverse=self.settings['REVERSE_CATEGORY_ORDER'])
self.categories.sort(
key=lambda item: item[0].name,
reverse=self.settings['REVERSE_CATEGORY_ORDER'])
self.authors = list(self.authors.items())
self.authors.sort()
self.authors.sort(key=lambda item: item[0].name)
self._update_context(('articles', 'dates', 'tags', 'categories',
'tag_cloud', 'authors'))