Fix tags format
This commit is contained in:
parent
6d9b32233b
commit
1aa5977af2
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user