Gangmax Blog

Migrate wordpress content(xml) to octopress

From here.

  1. Export your workpress content as a xml file, you should know how to do that;

  2. 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
  1. Run(assume the exported wordpress file name is “wordpress.xml”):
1
ruby -r './_import/wordpressdotcom.rb' -e 'Jekyll::WordpressDotCom.process("wordpress.xml")'
  1. If you get some error such as “require hpricot not found”, gem install the lack gem(s).

Done.

Comments