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):
- Run(assume the exported wordpress file name is “wordpress.xml”):
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).