skip to main content

Half-Baked Thought

 |  notes

In reply to: https://minutestomidnight.co.uk/blog/automation-for-my-blog-publishing-workflow/

I wonder how you set your date frontmatter, which isn’t mentioned clearly? If I make a new note, I fire up a stupid JS script that creates the file accordingly—something akin to your method—but also formats the date (and pries out the active Firefox tab I want to “respond” to using Webmentions, see https://git.brainbaking.com/wgroeneveld/brainbaking/src/branch/master/hooks/prenote.js )

For me, I don’t want that many prompts and find those annoying, I just want to automatically make the file in the right location with as much metadata filled in as possible. It then opens the file in Sublime. Title, tags, and content is added by hand.

@wouter I have now updated my original post and printed the code from the shell script in the new post automation. The code was visible in the script screenshot only. You can now see I have both date and last_modified_at in my Front Matter, formatted...

 | by 

I'm Wouter Groeneveld, a Brain Baker, and I love the smell of freshly baked thoughts (and bread) in the morning. I sometimes convince others to bake their brain (and bread) too.

If you found this article amusing and/or helpful, you can support me via PayPal or Ko-Fi. I also like to hear your feedback via Mastodon or e-mail. Thanks!