[mod] remove dead code
This commit is contained in:
parent
74798248b9
commit
0393126131
@ -237,7 +237,6 @@ def get_settings():
|
||||
|
||||
|
||||
def get_gallery_templates(theme, gallery_path="", parent_templates=None):
|
||||
if theme:
|
||||
theme_path = Path(__file__).parent.joinpath("themes", theme).exists()
|
||||
|
||||
available_themes = theme, "', '".join(Path(__file__).parent.joinpath("themes").listdir())
|
||||
@ -253,16 +252,6 @@ def get_gallery_templates(theme, gallery_path="", parent_templates=None):
|
||||
templates_dir.append(Path(__file__).parent.joinpath("themes", "exposure", "templates"))
|
||||
|
||||
subgallery_templates = Environment(loader=FileSystemLoader(templates_dir), trim_blocks=True)
|
||||
else:
|
||||
if parent_templates:
|
||||
theme = "exposure"
|
||||
subgallery_templates = parent_templates
|
||||
else:
|
||||
templates_dir = [
|
||||
Path(".").joinpath("templates").realpath(),
|
||||
Path(__file__).parent.joinpath("themes", theme, "templates")
|
||||
]
|
||||
subgallery_templates = Environment(loader=FileSystemLoader(templates_dir), trim_blocks=True)
|
||||
|
||||
Path(".").joinpath("build", gallery_path, "static").rmtree_p()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user