Skip to content
Permalink
Browse files
D'oh
  • Loading branch information
ralsina committed Jun 5, 2018
1 parent 76fe6ac commit c6895ba32bf56d7b1b0a663a44a12039c75b6dcd
Showing with 2 additions and 2 deletions.
  1. +2 −2 nikola/plugins/task/listings.py
@@ -181,8 +181,6 @@ def render_listing(in_name, out_name, input_folder, output_folder, folders=[], f

for input_folder, output_folder in self.kw['listings_folders'].items():
for root, dirs, files in os.walk(input_folder, followlinks=True):
if '.DS_Store' in root.split(os.path.sep):
continue
files = [f for f in files if os.path.splitext(f)[-1] not in ignored_extensions]

uptodate = {'c': self.site.GLOBAL_CONTEXT}
@@ -224,6 +222,8 @@ def render_listing(in_name, out_name, input_folder, output_folder, folders=[], f
'clean': True,
}, self.kw["filters"])
for f in files:
if f == '.DS_Store':
continue
ext = os.path.splitext(f)[-1]
if ext in ignored_extensions:
continue

0 comments on commit c6895ba

Please sign in to comment.