mirror of
https://gitlab.com/octtspacc/staticoso
synced 2025-06-05 22:09:23 +02:00
Change macros handle
This commit is contained in:
@ -38,7 +38,7 @@ def ResetPublic():
|
||||
|
||||
def DelTmp():
|
||||
for Ext in FileExtensions['Tmp']:
|
||||
for File in Path('public').rglob('*.{}'.format(Ext)):
|
||||
for File in Path('public').rglob(f"*.{Ext}"):
|
||||
os.remove(File)
|
||||
for Dir in ('public', 'public.gmi'):
|
||||
for File in Path(Dir).rglob('*.tmp'):
|
||||
@ -185,7 +185,7 @@ def Main(Args, FeedEntries):
|
||||
print("[I] Generating Gemtext")
|
||||
GemtextCompileList(
|
||||
Pages,
|
||||
Header=Args.GemtextHeader if Args.GemtextHeader else '# {}\n\n'.format(SiteName) if SiteName else '')
|
||||
Header=Args.GemtextHeader if Args.GemtextHeader else f"# {SiteName}\n\n" if SiteName else '')
|
||||
|
||||
print("[I] Last Steps")
|
||||
DelTmp()
|
||||
|
Reference in New Issue
Block a user