|Sven Slootweg b17347c166 Bugfix||6 years ago|
|_layouts||6 years ago|
|.gitignore||6 years ago|
|README.md||6 years ago|
|convert.py||6 years ago|
|html2text.py||6 years ago|
A simple converter. Export your (full) XML from your WordPress.com blog (Tools -> Export -> Export -> All Content), and run it through convert.py. The result will be Jekyll-compatible files.
The following are exported:
This might also work with regular WordPress blogs, no idea. I've only tested it for WordPress.com.
Licensed under the WTFPL (or CC0, if you prefer that). In short, do with it whatever you want. Attribution appreciated, but not required.
If this saved your data, donations are always welcome!
python convert.py SOURCE [DESTINATION]
SOURCE: The source XML file to read your data from.
DESTINATION: Optional. Where to put the resulting files. Point this at your Jekyll project directory root, and it'll put everything in the right place.
_drafts with, respectively, your posts and drafts and the appropriate metadata. Tags are included in the metadata, as a comma-separated list.
Creates a new directory with an index.html for each static page, so as to get clean URLs for them.
Stores all (image) attachments in the
attachments directory, and rewrites all URLs for them.
A basic layout for a 'page' is already present in the
_layouts directory in the repository; you should copy this, but it will overwrite any existing page.html layout (none in the default Jekyll project bootstrap).
html2textlibrary sometimes gets confused with styling, and it may misplace an underscore or asterisk.