Tumblr
Additional Dependencies
This importer requires the following additional libraries.
You may install the needed gems individually by running gem install GEM_NAME
or install all of them
with a single invocation:gem install jekyll nokogiri reverse_markdown
To import your posts from Tumblr, run:
$ ruby -r rubygems -e 'require "jekyll-import";
JekyllImport::Importers::Tumblr.run({
"url" => "http://myblog.tumblr.com",
"format" => "html", # or "md"
"grab_images" => false, # whether to download images as well.
"add_highlights" => false, # whether to wrap code blocks (indented 4 spaces) in a Liquid "highlight" tag
"rewrite_urls" => false # whether to write pages that redirect from the old Tumblr paths to the new Jekyll paths
})'
or from the commande line, .e.g.:
jekyll import tumblr --url=http://myblog.tumblr.com --format=md --grab_images --rewrite_urls
The only required field is url
. The other fields default to their above
values.