mirror of
https://github.com/Lumither/nocturne.git
synced 2026-10-17 10:26:21 +00:00
feat(cli) template update
This commit is contained in:
1 file changed
+2
-2
@@ -10,7 +10,7 @@ from utils.lang import eprint, wprint
|
|||||||
|
|
||||||
POST_TEMPLATE = '''
|
POST_TEMPLATE = '''
|
||||||
---
|
---
|
||||||
uuid: {{ uuid }}
|
id: {{ id }}
|
||||||
title: {{ title }}
|
title: {{ title }}
|
||||||
subtitle: {{ subtitle }}
|
subtitle: {{ subtitle }}
|
||||||
status: {{ status }}
|
status: {{ status }}
|
||||||
@@ -83,6 +83,6 @@ class BlogPost(Template):
|
|||||||
update=dt.today().strftime("%Y-%m-%d"),
|
update=dt.today().strftime("%Y-%m-%d"),
|
||||||
tags=get_tags(),
|
tags=get_tags(),
|
||||||
category=get_category(),
|
category=get_category(),
|
||||||
uuid=uuid.uuid4()
|
id=uuid.uuid4()
|
||||||
)
|
)
|
||||||
create_all_files(self.WORK_PATH.format(year=year, identifier="test"), self.ITEMS)
|
create_all_files(self.WORK_PATH.format(year=year, identifier="test"), self.ITEMS)
|
||||||
Reference in new issue
Block a user