Blogger to Jekyll
I wanted to see if it was possible to import blogger posts into github blog.
Found this tool that makes it simple to do so:
jekyll-import
Instructions:
- install the gem
gem install jekyll-import
- export your posts from blogger
download the resulting xml to another folder
- execute the importer
ruby -rubygems -e 'require "jekyll-import";
JekyllImport::Importers::Blogger.run({
"source" => "blog-02-21-2016.xml",
"no-blogger-info" => false, # not to leave blogger-URL info (id and old URL) in the front matter
"replace-internal-link" => false, # replace internal links using the post_url liquid tag.
})'
This will create a _posts directory with all your posts.
- Copy the posts to your github blog _posts directory and submit it to github
Comments