From 015b4aa03cdaa671c17b4776775cc3f697dd944f Mon Sep 17 00:00:00 2001 From: Tom Date: Sun, 16 Feb 2025 17:32:29 +0000 Subject: [PATCH] Update new_post.py --- scripts/new_post.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/new_post.py b/scripts/new_post.py index 565e8bc..f18c4bc 100755 --- a/scripts/new_post.py +++ b/scripts/new_post.py @@ -46,7 +46,7 @@ if Path(assets_dir).exists() \ and questionary.confirm(f"Directory {assets_dir} already exists, change assets dir?").ask(): assets_dir = questionary.text("Assets Directory: ", default=assets_dir).ask() -git_branch = questionary.text("Branch: ", default=f"post/{id_from_title}").ask() +git_branch = questionary.text("Branch: ", default=f"post/{id_from_title[:100]}").ask() newline = "\n" draft = f"""---