Lets update
parent
2938dc813c
commit
3c3d8a3247
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue