Search code examples
githubgit-branchgithub-pages

How to make two different GitHub pages as example.github.io and example.github.io/notifications?


My GitHub username is S1Live. I have a repository called notifications. So, a GitHub page has been made as example.github.io/notifications. I want to make another page as example.github.io or example.github.io/index.html.

Is it possible? If yes, then how to do it?


Solution

  • You can create a repo named username.github.io to host something on a subdomain. And by creating a repo as notifications under example user, you could make a website as example.github.io/notifications. Reference