better path for posts

This commit is contained in:
Guy Godfroy 2020-12-08 18:30:48 +01:00
parent 0e98e5b6d2
commit 7698aabd44
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ for dirname, subdirlist, mdlist in os.walk(md_path):
gmifile = basename + config.gmi_extension
post["path"] = os.path.relpath(dirname + "/" + gmifile, md_path)
post["path"] = config.posts_dir + "/" + os.path.relpath(dirname + "/" + gmifile, md_path)
# Read the Markdown file
with open(dirname + "/" + mdfile, "r") as md: