let's try something else

This commit is contained in:
Guy Godfroy 2020-12-04 20:22:35 +01:00
parent 6c6cd36d2f
commit 02b5610a5a
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ for dirname, subdirlist, mdlist in os.walk('.'):
else: else:
posts_prop_index[prop][slug] = {"name": item, "posts": [post]} posts_prop_index[prop][slug] = {"name": item, "posts": [post]}
else: else:
slug = slugify(post['prop']) slug = slugify(post[prop])
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)
else: else: