Lets update

master
Spagnolo Gasper 2022-12-24 23:04:38 +01:00
parent 2938dc813c
commit 3c3d8a3247
1 changed files with 0 additions and 8 deletions

View File

@ -17,14 +17,6 @@ def main():
with open(MD_NOTES_DIR + filename, "r") as f:
# Read the file
file = f.read()
# Find --- in the file and remove it and content inside ---
splited_file = file.split("---")
if(len(splited_file) > 2):
splited_file = splited_file[2:]
# Join the list back to a string
file = "".join(splited_file)
header["title"] = filename[:-3]
header["description"] = f"click to read about {filename[:-3]}"
date_modified = os.path.getmtime(MD_NOTES_DIR + filename)