Skip to content

Commit

Permalink
Allow True value for reverse (for shortcodes)
Browse files Browse the repository at this point in the history
Closes #3082

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed May 9, 2018
1 parent daa0cd0 commit 2cb25fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nikola/plugins/shortcode/post_list.py
Expand Up @@ -154,7 +154,7 @@ def handler(self, start=None, stop=None, reverse=False, tags=None, require_all_t

filtered_timeline = []
posts = []
step = -1 if reverse is None else None
step = None if reverse is False else -1

if type is not False:
post_type = type
Expand Down

0 comments on commit 2cb25fb

Please sign in to comment.