all repos — py-vite @ 7341201160758d23b73356d16f9394e0756cef92

the original vite, written in python

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
commit

7341201160758d23b73356d16f9394e0756cef92

parent

3874b300fa30bd075357103075827a7eb0956fa5

1 files changed, 6 insertions(+), 6 deletions(-)

jump to
M vite/vite.pyvite/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)))