mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
added THEME_STATIC_DIR setting
The theme static output directory path is now customisable via settings. i.e. you can now use 'assets' instead of 'theme'.
This commit is contained in:
parent
51dc02f298
commit
89034f8b3f
4 changed files with 7 additions and 2 deletions
|
|
@ -564,7 +564,8 @@ class StaticGenerator(Generator):
|
|||
|
||||
def generate_output(self, writer):
|
||||
self._copy_paths(self.settings['THEME_STATIC_PATHS'], self.theme,
|
||||
'theme', self.output_path, os.curdir)
|
||||
self.settings['THEME_STATIC_DIR'], self.output_path,
|
||||
os.curdir)
|
||||
# copy all Static files
|
||||
for sc in self.staticfiles:
|
||||
source_path = os.path.join(self.path, sc.source_path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue