1
0
Fork 0
forked from github/pelican

Honor 'IGNORE_FILES' in the static generator (issue 1692)

This means, for instance, that editor backups and similar will no
longer be copied out of a theme static directory into the built
website.
This commit is contained in:
Zack Weinberg 2015-06-04 17:55:40 -04:00
commit 1aac19caaf

View file

@ -670,10 +670,12 @@ class StaticGenerator(Generator):
for path in paths:
if final_path:
copy(os.path.join(source, path),
os.path.join(output_path, destination, final_path))
os.path.join(output_path, destination, final_path),
self.settings['IGNORE_FILES'])
else:
copy(os.path.join(source, path),
os.path.join(output_path, destination, path))
os.path.join(output_path, destination, path),
self.settings['IGNORE_FILES'])
def generate_context(self):
self.staticfiles = []