Skip to content

Commit

Permalink
Merge pull request #1746 from getnikola/fix-timeline-infinite-update
Browse files Browse the repository at this point in the history
Avoid infinite rebuild of render_posts:timeline_changes.
  • Loading branch information
felixfontein committed May 23, 2015
2 parents 0fdb917 + b7419f7 commit 76fbc11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nikola/nikola.py
Expand Up @@ -1469,7 +1469,7 @@ def scan_posts(self, really=False, ignore_quit=False, quiet=False):
# Sort everything.

for thing in self.timeline, self.posts, self.all_posts, self.pages:
thing.sort(key=lambda p: p.date)
thing.sort(key=lambda p: (p.date, p.source_path))
thing.reverse()
self._sort_category_hierarchy()

Expand Down

0 comments on commit 76fbc11

Please sign in to comment.