A tool for blog migration.
Blog System | Import | Export | Notes |
---|---|---|---|
Jekyll | Yes | Yes | Only Markdown files are supported. |
Hexo | Yes | Yes | File names will become date-prefixed. |
Logdown | Yes | No | All posts will become published. |
Ghost | No | Yes | Markdown tables will be converted to HTML w/ original Markdown source. |
Import means "moving from A", and export means "moving to A".
Think as a meta-blog-system that can only do import / export.
Install the core functionality:
$ gem install hikkoshi
And install the extensions of Hikkoshi that you want for blog migration:
$ gem install hikkoshi-jekyll
$ gem install hikkoshi-ghost
For example, you're currently using Jekyll and want to move to Ghost:
$ hikkoshi -f jekyll -t ghost -i ~/jekyll-blog/_posts/ -o ~/tmp/ghost.json
-f
: Your current blog system.-t
: Your target blog system.-i
: Location of your current blog posts or backup file.-o
: Location to store the exported file(s).git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)MIT License. See "LICENSE.txt".