WordPress.com

To import your posts from a WordPress.com blog, run:

$ ruby -rubygems -e 'require "jekyll-import";
    JekyllImport::Importers::WordpressDotCom.run({
      "source" => "wordpress.xml",
      "no_fetch_images" => false,
      "assets_folder" => "assets"
    })'

The source, no_fetch_images, and assets_folder fields are not required. Their default values are what you see above.

ProTip™: WordPress.com Export Tool

If you are migrating from a WordPress.com account, you can access the export tool at the following URL: https://YOUR-USER-NAME.wordpress.com/wp-admin/export.php.

Further WordPress migration alternatives

While the above method works, it does not import much of the metadata that is usually stored in WordPress posts and pages. If you need to export things like pages, tags, custom fields, image attachments and so on, the following resources might be useful to you:

  • Exitwp is a configurable tool written in Python for migrating one or more WordPress blogs into Jekyll (Markdown) format while keeping as much metadata as possible. Exitwp also downloads attachments and pages.
  • A great article with a step-by-step guide for migrating a WordPress blog to Jekyll while keeping most of the structure and metadata.
  • wpXml2Jekyll is an executable windows application for creating Markdown posts from your WordPress XML file.