1
0
mirror of https://gitlab.com/MisterBiggs/blog-static.git synced 2025-09-19 12:12:48 +00:00

fixed bug in coffee.py thanks Matthew♥

This commit is contained in:
2021-03-29 11:32:55 -07:00
parent 48b90fc4e9
commit 52818e988a
25 changed files with 6 additions and 10625 deletions

View File

@@ -11,10 +11,14 @@ widget = """
for filename in glob.glob("*/index.html", recursive=True):
print(filename)
with open(filename, "r+", encoding="utf-8") as f:
f.writelines(f.read().replace("</head>", widget))
txt = f.read().replace("</head>", widget)
f.seek(0)
f.writelines(txt)
# print(f.read())
# Add widget to home page
with open("index.html", "r+", encoding="utf-8") as f:
f.writelines(f.read().replace("</head>", widget))
txt = f.read().replace("</head>", widget)
f.seek(0)
f.writelines(txt)
#