Intro

There are 2 types of GitHub Pages:

  • User and organization sites
    • Must be stored in a repository named <owner>.github.io
    • Hosted at: https://<username>.github.io/
  • Project sites
    • Hosted at: http(s)://<owner>.github.io/<repositoryname>

Try exercise

Create a GitHub Repo

Enable GitHub Pages

https://docs.github.com/en/pages/getting-started-with-github-pages/creating-a-github-pages-site

  • In your GitHub repo, click Settings → Pages
  • Ensure Deploy from a branch is selected from the Source drop-down menu, then select main branch and root (/)

picture 4

  • As you commit it to the main branch your website will be updated