From 71af26a09cee53b9d7cd9c71a33e733e9aa9ea39 Mon Sep 17 00:00:00 2001 From: Lumither Tao Date: Thu, 17 Apr 2025 23:35:13 -0700 Subject: [PATCH] feat(cli) template update --- client/templates/post.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/templates/post.py b/client/templates/post.py index d500c83..0c6a0ec 100644 --- a/client/templates/post.py +++ b/client/templates/post.py @@ -10,7 +10,7 @@ from utils.lang import eprint, wprint POST_TEMPLATE = ''' --- -uuid: {{ uuid }} +id: {{ id }} title: {{ title }} subtitle: {{ subtitle }} status: {{ status }} @@ -83,6 +83,6 @@ class BlogPost(Template): update=dt.today().strftime("%Y-%m-%d"), tags=get_tags(), category=get_category(), - uuid=uuid.uuid4() + id=uuid.uuid4() ) create_all_files(self.WORK_PATH.format(year=year, identifier="test"), self.ITEMS)