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:
parent
c7b9a339eb
commit
1aac19caaf
1 changed files with 4 additions and 2 deletions
|
|
@ -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 = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue