Fix KeyError, positioning of front-matter Signed-off-by: Anirudh <icyph0x@pm.me>
Anirudh icyph0x@pm.me
Sat, 22 Jun 2019 12:47:12 +0530
1 files changed,
6 insertions(+),
6 deletions(-)
jump to
M
vite/vite.py
→
vite/vite.py
@@ -67,12 +67,12 @@ print(bad('Error: specified path exists.'))
else: with open(os.path.join(PAGES_PATH, head, tail), 'w') as f: to_write = ( - """--- - template - title:" - date: {today}" - ---\n""" - ).format(today) +"""--- +template +title:" +date: {t}" +---\n""" + ).format(t=today) f.write(to_write) print(good('Created %s.') % (os.path.join(PAGES_PATH, head, tail)))