something
This commit is contained in:
parent
9800b08204
commit
a1217c872a
|
@ -149,9 +149,10 @@ for page_dict in config.custom_pages:
|
|||
rel_path, filename = os.path.split(page_dict["name"])
|
||||
if rel_path:
|
||||
os.makedirs(rel_path, exist_ok=True)
|
||||
basename, extension = os.path.splitext(page_dict["name"])
|
||||
if not extension:
|
||||
extention = config.gmi_extension
|
||||
basename, extension = os.path.splitext(filename)
|
||||
if extension = "":
|
||||
filename = basename + config.gmi_extension
|
||||
else:
|
||||
filename = basename + extension
|
||||
filepath = os.path.join(rel_path, filename)
|
||||
with open(tpl_path + "/" + page_dict.get("tpl", basename) + ".tpl", "r") as tpl:
|
||||
|
|
Loading…
Reference in New Issue