Skip to content

Instantly share code, notes, and snippets.

@kfatehi
Created May 12, 2013 02:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kfatehi/5562147 to your computer and use it in GitHub Desktop.
Save kfatehi/5562147 to your computer and use it in GitHub Desktop.
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