From 7698aabd449481619613488613b38ed5ebf805b4 Mon Sep 17 00:00:00 2001 From: Guy Godfroy Date: Tue, 8 Dec 2020 18:30:48 +0100 Subject: [PATCH] better path for posts --- geminer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geminer.py b/geminer.py index 49e9ed3..aadcc9f 100755 --- a/geminer.py +++ b/geminer.py @@ -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: