From 1aa5977af2a339ad4117c3e04b89f90e15628eef Mon Sep 17 00:00:00 2001 From: Dhananjay Balan Date: Tue, 29 Jan 2019 14:29:28 -0500 Subject: [PATCH] Fix tags format --- new_post.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/new_post.py b/new_post.py index 0c5a88d..de9abdb 100755 --- a/new_post.py +++ b/new_post.py @@ -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: