Don't open new posts in the browser just print the url

This commit is contained in:
Tom 2025-02-16 17:26:35 +00:00
parent e5c93cfd16
commit 7da82d3692

View File

@ -86,7 +86,8 @@ Path("highlights.md").touch()
Path("blog.md").touch() Path("blog.md").touch()
url = f"http://localhost:4100/{now.strftime('%Y/%m/%d/')}{id_from_title}.html" 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}") system(f"code _posts/{filename}")
print(f"Now on new branch post/{id_from_title}") print(f"Now on new branch post/{id_from_title}")