fixed theme vs. self.theme glitch
This commit is contained in:
parent
32db7870e3
commit
086ba2a793
1 changed files with 2 additions and 1 deletions
|
@ -45,6 +45,7 @@ class Writer(object):
|
|||
|
||||
def __init__(self, settings, theme, index_title=''):
|
||||
self.settings = settings
|
||||
self.theme = theme
|
||||
self.output_dir = settings['SIGAL_DESTINATION']
|
||||
self.index_title = index_title
|
||||
self.logger = logging.getLogger(__name__)
|
||||
|
@ -55,7 +56,7 @@ class Writer(object):
|
|||
self.logger.info("siglican theme: %s", theme)
|
||||
|
||||
# pelican theme path merged with siglican theme path
|
||||
theme_paths = [ os.path.join(theme, 'templates'),
|
||||
theme_paths = [ os.path.join(self.theme, 'templates'),
|
||||
os.path.join(self.settings['THEME'], 'templates') ]
|
||||
|
||||
# setup jinja env
|
||||
|
|
Loading…
Reference in a new issue