How to use jekyll plugins with GitHub Pages
Posted on August 4, 2014 • 1 minutes • 93 words
Very cool idea by @randymorris
. Basically, actual source will now live in the source
branch and generated content (_site
folder) will be in master
instead.
- Make changes in the source branch
- Build and test the site locally
- Commit changes to source branch
- git publish-website which consists of the following steps
git branch -D master
git checkout -b master
git filter-branch --subdirectory-filter _site/ -f
git checkout source
git push --all origin
This is actually similar to the approach: develope locally and rsync _site
folder with your VPS/host public folder but works with GitHub Pages.