From 0d5744900442d32d9e482272b5d3887fd53f3e4c Mon Sep 17 00:00:00 2001 From: n Date: Mon, 8 Mar 2021 13:47:52 +0100 Subject: [PATCH] header&footer --- blog/index.gen.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/blog/index.gen.py b/blog/index.gen.py index ae1eff5..155af01 100755 --- a/blog/index.gen.py +++ b/blog/index.gen.py @@ -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()