fixed theme output directory
This commit is contained in:
parent
e5adbe28df
commit
c78cddf87f
1 changed files with 7 additions and 3 deletions
10
writer.py
10
writer.py
|
@ -89,12 +89,13 @@ class Writer(object):
|
|||
sys.exit(1)
|
||||
|
||||
# Copy the theme files in the output dir
|
||||
self.theme_path = os.path.join(self.output_dir, 'static')
|
||||
self.theme_path = os.path.join(settings['OUTPUT_PATH'], self.output_dir, 'static')
|
||||
copy_tree(os.path.join(self.theme, 'static'), self.theme_path)
|
||||
|
||||
|
||||
def generate_context(self, album):
|
||||
"""Generate the context dict for the given path."""
|
||||
|
||||
|
||||
self.logger.debug('siglican generate_context: theme_path ' + self.theme_path + " dst_path " + album.dst_path)
|
||||
albumdict = {
|
||||
'SIGAL_ALBUM': album,
|
||||
'SIGAL_INDEX_TITLE': self.index_title,
|
||||
|
@ -106,6 +107,9 @@ class Writer(object):
|
|||
}
|
||||
albumdict.update(self.settings)
|
||||
return albumdict
|
||||
# 'theme': {'name': os.path.basename(self.theme),
|
||||
# 'url': url_from_path(os.path.relpath(self.theme_path,
|
||||
# album.dst_path))},
|
||||
|
||||
def write(self, album):
|
||||
"""Generate the HTML page and save it."""
|
||||
|
|
Loading…
Reference in a new issue