Migrated my blog from Ghost to Github pages
Thanks to heroku beta pricing.
mkdir blogcd blog-
git init sudo gem install jekyllsudo gem install github-pagessudo gem install bundler
For development, live refresh etc
sudo gem install pygments.rbsudo gem install listen
Create the project
jekyll new .jekyll build --watch# Auto reload.- Go to http://localhost:4000
Import posts from self hosted Ghost blog
- Go to http://yourblog.com/ghost/debug
- Export json file with all of your posts.
sudo gem install jekyll_ghost_importerjekyll_ghost_importer GhostBackup.json# This will create _posts folder and _draft folder.
Play with the settings
vim _config.ymlpermalink: prettypaginate: 10paginate_path: "/page/page:num/"
Add pagination
I have ~400 posts so need to paginate in order to show in the main page. Used this recepi:
http://jekyllrb.com/docs/pagination/
PS: To create a new post you can use github’s UI and preview mode which is cool but not as cool as Ghost of course.