From here.
Export your workpress content as a xml file, you should know how to do that;
copy the “wordpressdotcom.rb” file to a directory such as “_import” from, such as the following directory(make sure you have jekyll gem installed before):
1 | ~/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll/migrators |
- Run(assume the exported wordpress file name is “wordpress.xml”):
1 | ruby -r './_import/wordpressdotcom.rb' -e 'Jekyll::WordpressDotCom.process("wordpress.xml")' |
- If you get some error such as “require hpricot not found”, gem install the lack gem(s).
Done.