So, I've been wanting a way to make posting to my blog easier and faster, especially from mobile devices. One sticking point has been that I like to geotag my posts with what3words addresses. I use post frontmatter to add this detail, and long ago wrote a script that polls my location via the iCloud Find My iPhone API and fills in the frontmatter for me. It looks like this when it's done (using this very post as reference):
The automation script is written in Python, and adds the frontmatter when I start a draft. Combined with pushing my content to GitLab and having Netlify set up to deploy from there, I've had a pretty smooth posting/publishing setup on my laptop for a while now. But it didn't work on my mobile devices. When I have an idea for a post while I'm not at my desk, I've generally had to jot something down and save it for publishing later.
I played around with trying to add the frontmatter business to my Netlify deploy process. It almost worked, but doing that on deploy means I ended up without the frontmatter (actually, the way wrote it, without the whole post) getting committed back to my Git repo. Needless to say, this was a problem. 😕
I finally figured out I could recreate everything the script does using Workflow on my phone and iPad. So that generates the frontmatter, drops it into a new file in Textastic and I'm good to go. From Textastic, I can save to Working Copy and push to GitLab.
I actually like it better than my workflow on the Mac, because Workflow has the location services built-in, so I don't have to do an awkward 2FA dance with the iCloud service to find out my coordinates. I just use a Get Current Location action. It's all pretty sweet.
Again, as with the included frontmatter example, I'm eating this dog food to write this post itself.