Hosting websites/homepages on GitHub Pages

You can host your personal homepage or group webpage or project website on GitHub using GitHub Pages.

GitLab and Bitbucket also offer a very similar solution.

Unless you need user authentication or a sophisticated database behind your website, GitHub Pages can be a very nice alternative to running your own web servers.

This is how all https://coderefinery.org material is hosted.

Exercise

  • Deploy own website reusing a template

  • Make a change to the website after it has been deployed for the first time

  • Verify that the change shows up on the website a minute or two later

The documentation for GitHub Pages is very good so no need for us to duplicate screenshots: https://pages.github.com/

Discussion

  • You can use HTML directly or another static site generator if you prefer to not use the default Jekyll.

  • It is no problem to use a custom domain instead of *.github.io.