mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Oops. Make a copy of the list before modifying it !
This commit is contained in:
parent
5fda51de42
commit
dd202744d0
1 changed files with 1 additions and 1 deletions
|
|
@ -89,7 +89,7 @@ class ArticlesProcessor(Processor):
|
|||
|
||||
# sort the articles by date
|
||||
self.articles.sort(key=attrgetter('date'), reverse=True)
|
||||
self.dates = self.articles
|
||||
self.dates = list(self.articles)
|
||||
self.dates.sort(key=attrgetter('date'))
|
||||
# and generate the output :)
|
||||
self._update_context(context, ('articles', 'dates', 'tags', 'categories'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue