This commit is contained in:
Guy Godfroy 2020-12-04 21:43:00 +01:00
parent 100005d00c
commit 17e2847b98
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ for prop_dict in config.index_props:
template = Template(tpl.read())
for item in posts_prop_index[prop]:
text = template.render(prop_item=posts_prop_index[prop][item])
with open(meta_path+"/"+prop_dict.get("item_dir", prop)+"/"+item+".gmi") as gmi:
with open(meta_path+"/"+prop_dict.get("item_dir", prop)+"/"+item+".gmi", "w") as gmi:
gmi.write(text)
# Generate posts list page