From 7da82d36927c71d58a8b342d02862d330972ea6d Mon Sep 17 00:00:00 2001 From: Tom Date: Sun, 16 Feb 2025 17:26:35 +0000 Subject: [PATCH] Don't open new posts in the browser just print the url --- scripts/new_post.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/new_post.py b/scripts/new_post.py index fed31d8..565e8bc 100755 --- a/scripts/new_post.py +++ b/scripts/new_post.py @@ -86,7 +86,8 @@ Path("highlights.md").touch() Path("blog.md").touch() url = f"http://localhost:4100/{now.strftime('%Y/%m/%d/')}{id_from_title}.html" -system(f"open {url}") +# system(f"open {url}") +print(f"Post served on localhost, open in browser to preview. {url}") system(f"code _posts/{filename}") print(f"Now on new branch post/{id_from_title}")