- In WordPress Settings, set permalinks to post name.
- Install the Basic Auth Plugin to WordPress
- Install the required packages:
pip3 install -r requirements.txt
- 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