A smart and small starter kit for building a Jekyll website to host on Github Pages:
media
key in _config.yml)At this point your new site should be up!
To finish, go through _config.yml and customize the name, description, etc.
Github pages uses the master
branch if you name your project YOURNAME.github.io
. Otherwise, it uses the gh-pages
branch, and serves your site at YOURNAME.github.io/PROJECTNAME
. I keep both branches up to date so you can use it either way without creating a branch. After you fork, you can delete the unused branch to avoid confusion.
Github Pages caches pages for 10 minutes whenever they are accessed. If you make a change while the page is cached, you will still see the old page until the cached page expires.
To bypass the cache, add a "cache-busting" query string after the URL, like so:
`http://mysite.github.io/my-page?somerandomstring`.
If you have an error in one of your pages or templates, the new version will fail to build and Github will send you an email lacking any detail about what caused the failure.
To see the error you can run Jekyll locally on a workstation.
Front Github pages with a free Cloudflare account, as detailed in this article.
Probably the most reliable way is to manually copy any new bits you want. If you're comfortable with git merge
or git cherry-pick
, you can use these and then fix any merge conflicts by hand.