Today, I finally switch my blog from Jekyll to WordPress.
I really love Jekyll and all features which I have from static site generator, but I need more functionality and more non-static features:
- An easy way to manage images
- Auto-resize and compress images for my needs
- I want to have access to my blog from any computer, not only from the machine which has my repo and ruby on board.
- easy scale functional and add open source features.
Funnily enough, there aren’t all that many resources for people who’re moving from Jekyll to WordPress. I took some advice from a post by Fabrizio Regini and a post by David Lynch, both contain enough detailed information on how to move the blog to WordPress in stages.
Prepare the backup of current blog
For the first step, I was run my Jekyll-blog locally, to get all my non-synced drafts and non-published post to backup.xml file.
To run my local projects, I prefer to use Docker, and my Jekyll-blog was not an exception 🙂
Take a look at my docker-compose.yml file:
version: '2' services: jekyll: image: jekyll/jekyll container_name: github-blog-local volumes: - ./:/usr/src/app working_dir: /usr/src/app command: sh -c 'jekyll serve -s /usr/src/app --drafts' ports: - "4000:4000" - "80:4000"
So before run docker-compose, I update the feed.xml file from my old blog to generate the full blog-feed.
Install an RSS import plugin on WordPress
This import process is going to use an RSS feed file as source. Install this plugin https://wordpress.org/plugins/rss-importer/
Not much to say here. Move to the RSS import tool and upload the file you generated at the previous step.
And voila… all we need review posts, tags, and categories, perhaps re-upload images.
My way maybe not so easy but it works for me 🙂