In 2013 I was tired of maintaining my own blog and started posting onto medium.com to save myself time. The first post was The Cost of Education into a collection named IMHO back when anyone could make and join collections. I even became a paid member to help support “my blogging platform” so I wasn't betting on a free service. Sadly, during the last couple years Medium has just been making things terrible – the worst of which is showing div popovers overtop my writing requesting readers to signup, sometimes not letting them read my writing if they don't become paid members.
I am no longer a paid member for Medium and I have migrated my writing over to my own website. When medium first launched it was a great example of good typography and easy publishing and it's sad to see them ruin it.
I'm using hugo to build everything statically. I'm using now by zeit to build, deploy, and host my files. I'm using iA Writer to edit my files on both macOS and iOS and I push updates to my files with git on macOS and Working Copy on iOS. Working Copy is a “file provider” on iOS which lets one edit the files from the git repo in any app like Writer or anything else with access to the Files app.
Zeit creates a test website for every branch I push, so I can easily push a new post from my Mac or phone with a real, live preview and then merge when I'm happy – which is a great workflow for me. hugo is so fast that I never wait more than a couple seconds for everything to rebuild. I’m super happy with this setup 😎
Trying to go full phone
I'm going to be traveling for a couple weeks without a laptop, so I prepared as much as I could to enable me to be able to do full posts entirely from my phone. Here is what that looks like:
We'll see how it goes posting with my phone. Inserting images is not the best…
It took way longer than I hoped or assumed to migrate away from Medium. The switching cost is real and high. I wish it weren't the case, but publishing on the internet reliably is still not “easy.”
hugo's shortcodes are always confusing and having to use them for inserting images means I cannot preview images directly in Writer. I may just edit the images in Pixelmator and then use the normal markdown image syntax.
Zeit makes an assumption that builds are immutable and deterministic. While this is true for my website, there is one input that I consider a change that they do not: for the preview websites for every PR the domain for the website is not
nathanherald.com so I use an
ENV variable to inject a predictable domain for hugo to use. When I merge the PR, Zeit looks at the source code and says “I've seen all this before, so I'm not rebuilding again” and it promotes the version of the site built for something other than
nathanherald.com and that breaks all the images and colors and everything.
I got annoyed and decided I would just move to GitHub Actions and just build wtf I want, but I have fallen prey to a bug in Actions that affects me because of my super-early access to the feature. It will be probably get fixed by next week…
I've created a workaround for the Zeit problem and I've sent them an email to ask them to consider the change in
ENV variables as a “change of inputs” and therefore trigger a new build…
Good times™ as usual. I do love building for the web.