Skip to content

Commit 2cb25fb

Browse files
authoredMay 9, 2018
Allow True value for reverse (for shortcodes)
Closes #3082 Signed-off-by: Chris Warrick <kwpolska@gmail.com>
1 parent daa0cd0 commit 2cb25fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎nikola/plugins/shortcode/post_list.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def handler(self, start=None, stop=None, reverse=False, tags=None, require_all_t
154154

155155
filtered_timeline = []
156156
posts = []
157-
step = -1 if reverse is None else None
157+
step = None if reverse is False else -1
158158

159159
if type is not False:
160160
post_type = type

0 commit comments

Comments
 (0)
Please sign in to comment.