Want to export your Markdown posts from Jekyll to a format that can be easily imported into Ghost? This plugin will help you do that, though there are some limitations. It doesn't handle static pages, and it doesn't do anything with images. You'll have to copy those over yourself and manually adjust any URL differences.
This was built by reverse-engineering the WordPress exporter plugin to match the JSON file it outputs.
Last tested 2018-11-20 with Ghost Pro 2.6.0 and Jekyll 3.8.4. It chokes on code-heavy stuff; I think it has to do with syntax highlighting.
- Clone the repo and drop the
jekylltoghost.rb
file into your Jekyll site's_plugins
directory - Run
jekyll build
. - There should now be a
ghost_export.json
file in the_site
directory. Open it, remove all the instances of\n\n
or\\n
or whatever nonsense comes out, then - Import into Ghost.
This Jekyll plugin is licensed under the MIT license.