asshole me

This commit is contained in:
Guy Godfroy 2020-12-04 22:15:15 +01:00
parent 8fd9872bf7
commit 88272fe95d
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ for dirname, subdirlist, mdlist in os.walk('.'):
else: else:
posts_prop_index[prop][slug] = {"name": item["name"], "posts": [post]} posts_prop_index[prop][slug] = {"name": item["name"], "posts": [post]}
else: else:
post[prop] = {"name": prop_raw, "slug": slugify(prop-raw)} post[prop] = {"name": prop_raw, "slug": slugify(prop_raw)}
slug = post[prop]["slug"] slug = post[prop]["slug"]
if slug in posts_prop_index[prop]: if slug in posts_prop_index[prop]:
posts_prop_index[prop][slug]["posts"].append(post) posts_prop_index[prop][slug]["posts"].append(post)