how about that?

This commit is contained in:
Guy Godfroy 2020-12-03 20:52:30 +01:00
parent 785e4c4cf2
commit 4490a7d5ed
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ for dirname, subdirlist, mdlist in os.walk('.'):
with open(gmi_subpath+"/"+gmifile, 'w') as gmi: with open(gmi_subpath+"/"+gmifile, 'w') as gmi:
gmi.write(gmitext) gmi.write(gmitext)
posts_meta.sort(key=lambda p: datetime.strptime(p["date"], "%Y-%m-%d"), reverse=True) posts_meta.sort(key=lambda p: p["date"], reverse=True)
with open(tpl_path+"/index.tpl", 'r') as tpl: with open(tpl_path+"/index.tpl", 'r') as tpl:
template = Template(tpl.read()) template = Template(tpl.read())