https://github.com/distributedlife/distributedlife.com
blog content
https://github.com/distributedlife/distributedlife.com
Last synced: 3 months ago
JSON representation
blog content
- Host: GitHub
- URL: https://github.com/distributedlife/distributedlife.com
- Owner: distributedlife
- License: gpl-2.0
- Created: 2013-12-13T12:06:25.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2017-12-09T21:59:06.000Z (over 8 years ago)
- Last Synced: 2025-01-19T14:24:11.546Z (over 1 year ago)
- Language: XSLT
- Size: 24 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Wordpress to Middleman Exporter
===============================
A Ruby Script that will convert your exported Wordpress XML into markdown files with the appropriate [frontmatter](http://middlemanapp.com/frontmatter/) metadata so that they are consumable by Middleman.
Getting Started
----
1. Open up the wordpress_to_middleman.rb file and setup the following three variables
- WORDPRESS_XML_FILE_PATH (The path to the exported wordpress.xml file)
- OUTPUT_PATH (The path where all of the markdown posts will be saved)
- ORIGINAL_DOMAIN (The domain of the original website)
2. Ensure that all of the required gems are installed - two in specific that are required are:
- nokogiri
- upmark
3. Remove the following lines from the exported Wordpress XML (They mess with nokogiri's parser):
3. In the terminal, navigate to the folder where the project has been saved, and run
ruby wordpress_to_middleman.rb
### Please Note that this is a work in progress. Contributions welcome.