Streamlining the flow of post creation

Published

I created a python script that generates the markdown template for me.

The generated file uses the date time so there will never be a name collision. On mac I can use the reverse i search by being in my terminal and pressing ‘ctrl + r’. From there I can type ‘py’ and it will show the last command I ran in the history that contains ‘py’ and then press enter to run it.

python3 generate_markdown_post.py
File created: src/content/blog/2025-01-22_22-35-28.md

That way I can open my editor, run the program and click on the file to open it. It automatically sets the publish date based on todays date, so all I need to do is write the contents, title, and rename the file and it’s ready to publish.

File contents of 2025-01-22_22-35-28.md:

---
title: 'title'
publishedDate: '2025-01-22'
---
Build in public on the synergy of code and movement.

Streamlining the flow of post creation. Another day shipped. Onwards and upwards.