I finally migrated from Wordpress to Jekyll. It wasn’t difficult but not easy either so I decided to write my experience in this blog.
I’m assuming that you setup a basic Jekyll site:
_posts, etc. A good start is to clone mojombo jekyll site and remove the
So I found a migration script posted to Issue #20 that uses the Wordpress XML export as input. The script had a couple of problems, it didn’t handle international characters in the title, and it didn’t honor the original permalinks in WordPress.
So I modified it to fix those thing
To use it you need to have a
wordpress.xml file in the same directory where you run the script and you need to modify the
ORIGINAL_DOMAIN in the script to reflect your own. It will dump the published WordPress posts and comment as jekyll textile files in
The only thing that you need is to create a file called
API-KEY in the same directory as
yamlcomments2disqus.rb and write there your Disqus API key. The script will automatically post all non-spam comments to Disqus using Disqus API. The comments thread for each post is identified by the original Wordpress
<wp:post_id> so then you have to add the following
http://disqus.com/comments/universal/<your site>/) in your layout.