Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Convert a Wordpress XML export into markdown files suitable for a jekyll site
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
features
lib
spec
.gitignore
.rspec
Gemfile
Gemfile.lock
Guardfile
LICENSE.txt
README.md
Rakefile
wp_conversion.gemspec

README.md

WpConversion

Convert a Wordpress XML export into pages suitable for a jekyll site

Installation

Add this line to your application's Gemfile:

gem 'wp_conversion'

And then execute:

$ bundle

Or install it yourself as:

$ gem install wp_conversion

Usage

$ wp_conversion WPExport.xml

This will create 3 directories: posts, pages, and attachments that will contain markdown files reflecting the items in the wordpress export. The posts and pages will be converted such that a site can be generated via jekyll.

  • Posts have the YYYY-MM-DD-title.markdown format.
  • Pages just have title.markdown.
  • Files will have the appropriate YAML header for jekyll processing.
  • Attachments will be YAML files with the link to the attachment.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
Something went wrong with that request. Please try again.