Hello jekyll goodbye tumblr

Migrating my posts from Tumblr and into Jekyll was not too difficult but I did need to write a little script to make this work.

Gist

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env ruby

require 'rubygems'

##
# Monkeypatch to fix the following
# tumblr.rb:73
# content = post.at["audio-player"] + "<br/>" + post["audio-caption"]
class Hash
def at
self
end
end

begin
require 'jekyll/jekyll-import/tumblr'
rescue
puts "Missing jekyll-import gem. Do this: gem install jekyll-import --pre"
exit -1
end

JekyllImport::Tumblr.process("http://slog.keyvanfatehi.com", true)