mirror of
https://gitlab.com/octtspacc/staticoso
synced 2025-03-30 11:00:24 +02:00
Fix yesterday's bug
This commit is contained in:
parent
9a98577fda
commit
e33e8c8273
@ -131,7 +131,7 @@ def CopyBaseFiles(Flags:dict):
|
|||||||
shutil.copytree(Type, f'{f.OutDir}{PageTypeOutPrefix[Type]}', dirs_exist_ok=True)
|
shutil.copytree(Type, f'{f.OutDir}{PageTypeOutPrefix[Type]}', dirs_exist_ok=True)
|
||||||
shutil.copytree(Type, f'{f.OutDir}.Content{PageTypeOutPrefix[Type]}', dirs_exist_ok=True)
|
shutil.copytree(Type, f'{f.OutDir}.Content{PageTypeOutPrefix[Type]}', dirs_exist_ok=True)
|
||||||
if f.GemtextOutput:
|
if f.GemtextOutput:
|
||||||
shutil.copytree('Posts', f'{f.OutDir}.gmi{PageTypeOutPrefix[Type]}', ignore=IgnoreFiles, dirs_exist_ok=True)
|
shutil.copytree(Type, f'{f.OutDir}.gmi{PageTypeOutPrefix[Type]}', ignore=IgnoreFiles, dirs_exist_ok=True)
|
||||||
return Have['Pages'] or Have['Posts']
|
return Have['Pages'] or Have['Posts']
|
||||||
|
|
||||||
def DedupeBaseFiles(Flags:dict):
|
def DedupeBaseFiles(Flags:dict):
|
||||||
|
@ -68,7 +68,7 @@ def GetHTMLPagesList(Flags:dict, Pages:list, PathPrefix:str, CallbackFile=None,
|
|||||||
if SingleLine:
|
if SingleLine:
|
||||||
List += f' <span>{Title}</span> '
|
List += f' <span>{Title}</span> '
|
||||||
else:
|
else:
|
||||||
List += f'{Levels}<span>{Title}</span>\n'
|
List += f'{Levels}<span class="staticoso-List-Title">{Title}</span>\n'
|
||||||
|
|
||||||
# Pages with any other path
|
# Pages with any other path
|
||||||
if not (Depth > 1 and StripExt(File).split('/')[-1] == 'index'):
|
if not (Depth > 1 and StripExt(File).split('/')[-1] == 'index'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user