jekyll-to-wordpress

jekyll-to-wordpress

This utility converts sends Jekyll posts to a Wordpress server

  1. In WordPress Settings, set permalinks to post name.
  2. Install the Basic Auth Plugin to WordPress
  3. Install the required packages: pip3 install -r requirements.txt
  4. Copy config.template.json to config.json and fill in the details.

This tool does not handle:

  • Checking for post existence. Therefore, multiple CLI calls with the same parameters will yield the multiple of the same posts.

Usage

Convert a Jekyll file to WordPress posts

python3 /path/to/jekyll-to-wordpress/main.py --file /path/to/file.md

Convert a directory of Jekyll files to WordPress posts

python3 /path/to/jekyll-to-wordpress/main.py --directory /path/to/_posts