The Blog is Back... Mostly
Dec 1, 2019I converted a mysqldump of the old TextPattern blog to markdown and brought it back up using the Hugo static site generator.
I chained one hack after another. I converted the textpattern table to
sqlite in Perl with SQL::Translator
, queried the desired fields from
sqlite3, munged the tabular output with jq
into json, and finally a
slapped together a quick Python hack using Jinja2 templates to
generate the front matter for hugo and a pandoc
subprocess to
translate textile markup to markdown. I know, filthy.
Things I know are broken: images, some links, anything involving the old versions of the site. I might eventually get around to fixing it.