fix md metadata

This commit is contained in:
tonyrewin 2022-06-25 09:38:50 +03:00
parent 8041c02878
commit 8990cc2aec

View File

@ -174,7 +174,7 @@ def migrate(entry, users_by_oid, topics_by_oid):
shout_dict['authors'] = [ author, ]
if entry['published']:
metadata = get_metadata(r)
metadata = get_metadata(shout_dict)
content = frontmatter.dumps(frontmatter.Post(body, **metadata))
ext = 'md'
open('migration/content/' + r['layout'] + '/' + r['slug'] + '.' + ext, 'w').write(content)