lamby/ikiwiki-wordpress-import — pull request #4 by rodneythellama (2012-10-21 09:56:35+00:00)
Title: A few enhancements, all in one commit, sorry

1. Added some command-line options with optparse. Name and e-mail
default to the git configured values.

2. Pages are put in their own subdir.

3. Images are loaded in from a wp-uploads directory which you have
rsynced from your wordpress install.

4. Images inserted in pages are replaced with [[!img]] directives. The
parsing is probably not general enough but it works for my
blog. The image size, title, classs are preserved.

5. A list of redirects is written out which can be fixed up and used
in an apache config file.

6. [[!meta author="fred"]] directives are written.

7. The blog post filename stub is found from the element if
isn't suitable. Multiple dashes in filenames are merged into
one dash.

8. The extra complexity warranted splitting the importer into multiple
smaller functions.