Skip to content

Commit

Permalink
Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwpolska committed Apr 28, 2023
1 parent df1310d commit 4aa8747
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion nikola/plugins/task/page_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ def should_generate_classification_page(self, dirname, post_list, lang):
short_destination = dirname + '/' + self.site.config['INDEX_FILE']
for post in post_list:
# If there is an index.html pending to be created from a page, do not generate the page index.
other = post.destination_path(lang, sep='/')
if post.destination_path(lang, sep='/').lstrip('/') == short_destination.lstrip('/'):
return False
return True

0 comments on commit 4aa8747

Please sign in to comment.