David King

full stack developer

All Blog Articles

Prev « oodavid.com is now Jekyll powered Next » GViz Mister! Embeddable graphViz


Convert From Tumblr to Jekyll Using PHP

09 Apr 2013

As you know I've recently upgraded my site to use github's "Jekyll pages", a big reason for the move was to migrate my more active tumblr to my less active personal site. Mostly to drive traffic directly here in order to promote my other work.

Having tinkered with the Tumblr API I know that it would be really easy to loop my blog articles and dump out Jekyll formatted posts. There were various ruby gems available that claimed to work, but this being my first foray into ruby I kept encountering dependency errors; long-story-short I decided to just smash out a PHP script to the same effect.

PHP script to convert tumblr blog articles to jekyll posts, modify the settings then simply run this in your terminal: php tumblr2jekyll.php

tumblr2jekyll.php


Prev « oodavid.com is now Jekyll powered Next » GViz Mister! Embeddable graphViz