Fix tags format

This commit is contained in:
Dhananjay Balan 2019-01-29 14:29:28 -05:00
parent 6d9b32233b
commit 1aa5977af2

View File

@ -29,14 +29,10 @@ comments: true
tags: {} tags: {}
--- ---
""" """
catblock = " - {}"
cats = map(catblock.format, tags.split())
metadata_fmt = metadata_fmt.format( metadata_fmt = metadata_fmt.format(
blog_title, blog_title,
title_date, title_date,
', '.join(cats) ', '.join(tags.split())
) )
with open('blog/{}'.format(filename), 'w') as f: with open('blog/{}'.format(filename), 'w') as f: