Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Reverse previous articles so that clicking is more intuitive.

  • Loading branch information...
commit 38e097c3a1287731e3083ca41edefda6efd7a76a 1 parent 19dd2a0
@lethain authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  views.py
View
2  views.py
@@ -91,7 +91,7 @@ def context_module(page, limit=2, cli=None):
before = None
after = None
if pages[:limit]:
- before = {"title":"Previous", "pages":pages[:limit]}
+ before = {"title":"Previous", "pages":reversed(pages[:limit])}
if pages[limit+1:]:
after = {"title":"Next", "pages":pages[limit+1:]}
return (before, after)
Please sign in to comment.
Something went wrong with that request. Please try again.