This is a set of Kotlin tiny utilities to help you convert your WordPress site to Hugo. It's my first go at Kotlin, so expect to see a lot of weird code.
- Convert a flat Markdown structure to Hugo leaf page bundles.
- Convert Easy Footnote footnotes to Markdown footntoes.
- Convert HTML image tags to Markdown image tags, and move the images from WordPress'
upload
folder to the corresponding leaf node. - Convert HTML anchor tags to Markdown link tags.
- Move the images from WordPress'
upload
folder to the corresponding leaf node. - Prepend "cover-" to any image in the "featured_image" front matter.
DISCLAIMER: Everything is provided as-is. You use everything in this repository at your own risk. I'm not liable for any damage caused by compiling, running, or otherwise using the code in this repository.
Visit me at www.vegard.net.