header&footer

This commit is contained in:
n 2021-03-08 13:47:52 +01:00
parent c5876330f3
commit 0d57449004
1 changed files with 4 additions and 0 deletions

View File

@ -34,6 +34,7 @@ mycursor.execute("SELECT post_url, post_title, post_content_xhtml FROM dc_post W
myresult = mycursor.fetchall()
f = open("index.gmi", "w")
f.write("# Tourmentine's blog-to-gemlog\n\n");
f.close()
for x in myresult:
@ -58,3 +59,6 @@ for x in myresult:
f.write("\n\n=> /blog/ Retour au menu du blog")
f.close()
f = open("index.gmi", "a")
f.write("\n=> Retour")
f.close()