forked from github/pelican
fix special handling of THEMES paths
This commit is contained in:
parent
b22f760042
commit
ad6b483746
5 changed files with 24 additions and 15 deletions
|
|
@ -71,8 +71,11 @@ class Generator(object):
|
|||
explicit_themes[prefix] = FileSystemLoader(templates_path)
|
||||
else: # implicit inheritance
|
||||
if theme == 'simple':
|
||||
theme = simple_theme_path
|
||||
themes.append(FileSystemLoader(theme))
|
||||
templates_path = simple_theme_path
|
||||
else:
|
||||
templates_path = os.path.join(theme, "templates")
|
||||
logger.debug('Implicit template path: %s', templates_path)
|
||||
themes.append(FileSystemLoader(templates_path))
|
||||
|
||||
themes.append(PrefixLoader(explicit_themes))
|
||||
loader=ChoiceLoader(themes)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue