43 lines
No EOL
1 KiB
Markdown
43 lines
No EOL
1 KiB
Markdown
# Jekyll to Hugo Converter
|
|
|
|
Jekyll to Hugo Converter is a simple tool to convert Jekyll posts to Hugo posts.
|
|
|
|
You can also use it to convert your WordPress blog into a Hugo blog. Tutorial coming soon.
|
|
|
|
Note:
|
|
- This tool is still under development.
|
|
- This tool is not perfect, it will not convert everything. If you find a bug, please open a PR.
|
|
|
|
## Usage
|
|
|
|
### Python
|
|
|
|
If you have Python installed, you can use the following commands:
|
|
|
|
```bash
|
|
pip install -r requirements.txt
|
|
python3 jekyll-to-hugo.py <jekyll_post_path> <hugo_post_path>
|
|
```
|
|
|
|
To change the config, edit `config.yaml`.
|
|
|
|
The configuration file path can be configured with the `CONFIG_PATH` environment variable.
|
|
|
|
### Docker
|
|
|
|
If you don't have Python installed, you can use Docker:
|
|
|
|
1. Build the image.
|
|
|
|
```bash
|
|
docker build -t jekyll-to-hugo .
|
|
```
|
|
|
|
2. Run the image. You will need to mount the following directories: config file, Jekyll posts directory, Hugo posts directory.
|
|
|
|
```bash
|
|
docker run -it --rm -v $(pwd):/app jekyll-to-hugo
|
|
```
|
|
|
|
---
|
|
Made with ❤️ by [NucuLabs.dev](https://blog.nuculabs.dev) |