Skip to content

Commit

Permalink
Remove empty return to allow else clause in post-list shortcode. Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
devilgate authored Jul 14, 2020
1 parent fd32749 commit 980161d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Features
Bugfixes
--------

* Allow else clause in post-list plugin. (Issue #3436)

New in v8.1.1
=============

Expand Down
3 changes: 0 additions & 3 deletions nikola/plugins/shortcode/post_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,6 @@ def handler(self, start=None, stop=None, reverse=False, tags=None, require_all_t

posts += [post]

if not posts:
return '', []

template_deps = site.template_system.template_deps(template)
if state:
# Register template as a dependency (Issue #2391)
Expand Down

0 comments on commit 980161d

Please sign in to comment.