Merge pull request #2593 from sharmaeklavya2/relative-static-paths

Use relative paths only in StaticGenerator
This commit is contained in:
Justin Mayer 2020-04-18 18:58:46 +02:00 committed by GitHub
commit 075ca53bd2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -799,8 +799,7 @@ class StaticGenerator(Generator):
def generate_context(self):
self.staticfiles = []
linked_files = {os.path.join(self.path, path)
for path in self.context['static_links']}
linked_files = set(self.context['static_links'])
found_files = self.get_files(self.settings['STATIC_PATHS'],
exclude=self.settings['STATIC_EXCLUDES'],
extensions=False)