Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Jekyll Tumblr Import using jekyll-import v0.1.0.beta1
#!/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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.