Skip to content

Takes your Markdown posts from Jekyll and packages them up into a JSON file that Ghost (http://ghost.org) can import

License

Notifications You must be signed in to change notification settings

saralilyb/Jekyll-to-Ghost

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Jekyll-to-Ghost Exporter

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.

Installation

  1. Clone the repo and drop the jekylltoghost.rb file into your Jekyll site's _plugins directory
  2. Run jekyll build.
  3. 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
  4. Import into Ghost.

License

This Jekyll plugin is licensed under the MIT license.

About

Takes your Markdown posts from Jekyll and packages them up into a JSON file that Ghost (http://ghost.org) can import

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%