~dbalan/blogng unlisted

1aa5977af2a339ad4117c3e04b89f90e15628eef — Dhananjay Balan 1 year, 11 months ago 6d9b322
Fix tags format
1 files changed, 1 insertions(+), 5 deletions(-)

M new_post.py
M new_post.py => new_post.py +1 -5
@@ 29,14 29,10 @@ comments: true
tags: {}
---
"""
catblock = "  - {}"
cats = map(catblock.format, tags.split())


metadata_fmt = metadata_fmt.format(
   blog_title,
   title_date,
   ', '.join(cats)
   ', '.join(tags.split())
)

with open('blog/{}'.format(filename), 'w') as f: