januar 20, 2014

iPad blog flow

TL;DR - I've implemented a workflow for my Chisel log using a combination of Pythonista scripts and x-callback-urls enabling me to write, uploading and inserting images in posts and publishing all of it on a tiny Linux box.

 Image name

This post is written in english because of the limited interest such a subject would have among a danish audience.

It is no secret that I have an affection of the simplicity of static blog generators; I have actually been using a few on this domain in the past.1 The simplicity of a system that I understand and can hack myself is worth so much for me as a hobby techie. Furthermore this setup is portable (can easily be moved to a new host or system) and secure (no active components - apart from the webserver, that is - to be maintained).

The flow

The goal is to be able to create and publish full length post - including images - using only my iPad. To do that I need to identify each step in my logging flow and support each step in a way that not only make it technically possible but also easy to use - well as easy as it can with the setup I have chosen anyway.

The steps in my workflow is as follows:

So the workflow ends up looking like this (note the gears that indicate an action that is being automated):

 workflow

The scripts

All the scripts are subject to changes and improvements which is why I don't post them here, but link to them instead.

Each of these scripts is written and run in Pythonista on an iPad or even on the iPhone or iPod.

Round-up

The setup does exactly what I set out to acheive. It enables me to write effortlessly from my iPad. I actually have no need to pull out my MacBook Pro anymore - only if I have to edit the posts after they have gone online.2 After I bought an iPad mini (retina) and a bluetooth keyboard / stand I find myself using the Mac less and less.

Ease of use - Medium. This must be evaluated against other iOS-publishing methods, and while there certainly are easier ways to get content online; I have yet to see an easier - or perhaps more transparent - setup for a self hosted site build with a static site generator. Each step in my flow is under my control; right from the server that hosts my content over the tool I use to generate the site to the scripts I use to control this setup with. But that wont make it easy to understand for any non techie. When set up it is pretty straight forward to use - especially if you execute the scripts via x-callback-urls with an app like Launch Center Pro.

Geek factor - High. Generating static html from the commandline, managing your own server and scripting (or adapting scrips to) your setup is definitely not for everybody. You have to want to tinker. For everybody else there is loads of online services that does the job of getting your content online faster and easier.


  1. Git repository of logiskhave on Jekyll and Octopress

  2. Which is a consequense of my choice of the drafts / posts setup. This setup allows me to regenerate the site for whatever reason without incidently publishing a post I'm working on.