#WordPress to #Jekyll Part 3 - Exporting your Blog Content

After having presented the arguments for a static blog as well as an introduction to Jekyll, this post will be more hands-on.WordPress to Jekyll exporterI will demonstrate how to export all your pages and posts from WordPress to markdown. Most of the work will be done by the WordPress plugin called Jekyll Exporter.

Export Process

Launching the WordPress to Jekyll exporter

As soon as the plugin is installed and activated, you can initiate the export process from the tools menu (see screenshot).

In case this method does not work, you can launch the export process from the command line on your web server. You need to change to the plugin directory and execute the following command: php jekyll-export-cli.php > jekyll-export.zip

Note that the export process can easily take several minutes. In my case, I had to wait for about 10 minutes before the download was ready.


The archive resulting from the export process contains all pages and posts in markdown as well as some global configuration options in _config.yml. Mind that unpacking the archive inside your Jekyll blog directory will result in overwriting your _config.yml. You need to merge those two configuration files to make sure no settings are lost.

Based on your knowledge from my previous post about how Jekyll works, you are ready to generate your static site with your own content.

Next Steps

You may be feeling enthusiastic about your progress but there are still several steps ahead of you before the existing pages and posts will be properly displayed.

While I am preparing the next part in this series about hosting your blog you need to take care of the following steps:

In addition, it may be necessary to make several corrections to the markdown code produced by the Jekyll Exporter. You probably want to use PowerShell to make those corrections against a large number of posts.

You need to take into account that markdown does not offer the same features for layout manipulation as HTML. For example, the HTML a tag accepts an attribute called target which allows to force the link to open in a new window. This is something markdown cannot do. Therefore, before you begin to modify your posts, you need to decide whether pure markdown is the way to go. I have tried this and realized that there are some features of HTML that I do not want to live without. Therefore, my posts are a mix of markdown and HTML.

Upcoming Parts

In the next two parts of this series I will demonstrate how to use GitHub Pages and how to use Azure Websites to host your site.

Note that at this point you have all the pieces to generate a static site containing your original blog content. Still there are many features missing from your new blog. Many of which I will cover in a separate article including an archive, tags, search, social buttons and many more.

Feedback is always welcome! If you'd like to get in touch with me concerning the contents of this article, please use Twitter.