From a5f42768b0ebe05d167526811432086a8d62c2dc Mon Sep 17 00:00:00 2001 From: Guy Godfroy Date: Fri, 4 Dec 2020 20:30:07 +0100 Subject: [PATCH] dammit --- geminer.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/geminer.py b/geminer.py index a1d2a4f..8449825 100755 --- a/geminer.py +++ b/geminer.py @@ -87,6 +87,7 @@ for dirname, subdirlist, mdlist in os.walk('.'): posts_prop_index[prop][slug]["posts"].append(post) else: posts_prop_index[prop][slug] = {"name": item, "posts": [post]} + print(item) else: slug = slugify(post[prop]) if slug in posts_prop_index[prop]: @@ -165,9 +166,9 @@ text = template.render(posts=posts) with open(meta_path+"/posts.gmi", 'w') as gmi: gmi.write(text) -# Generate tags list page -with open(tpl_path+"/tags_list.tpl", 'r') as tpl: - template = Template(tpl.read()) -text = template.render(tags=tags) -with open(meta_path+"/tags.gmi", 'w') as gmi: - gmi.write(text) +## Generate tags list page +#with open(tpl_path+"/tags_list.tpl", 'r') as tpl: +# template = Template(tpl.read()) +#text = template.render(tags=tags) +#with open(meta_path+"/tags.gmi", 'w') as gmi: +# gmi.write(text)