My blogging workflow

I’ve got my blogging workflow down. I’m using the excellent Bear app to write the content, Hugo to generate static html/css files, and git to sync work between my Mac and Linux machines.

  1. Write post in Bear on the Mac (don’t include a title, Hugo will add this).
  2. Export as Markdown.
  3. Create a new post in Hugo to create a Markdown stub containing Hugo front matter.
  4. cat the post file to the Hugo stub.
  5. Run Hugo build script (includes syncing with AWS S3).
  6. git push