stupid me

This commit is contained in:
Guy Godfroy 2020-12-04 22:11:42 +01:00
parent 03f6730ac5
commit c11be60cab
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ for dirname, subdirlist, mdlist in os.walk('.'):
#post[prop] = meta.get(prop, None)
prop_raw = meta.get(prop, None)
if prop_dict.get("list", False) and post[prop]:
post[prop] = [{"name": word, "slug": slugify(word) for word in prop_raw.split(',')]
post[prop] = [{"name": word, "slug": slugify(word)} for word in prop_raw.split(',')]
for item in post[prop]:
slug = item["slug"]
if slug in posts_prop_index[prop]: