Can I have multiple github pages , which resides on diffferent directories

Hello,

Im doing the Odin project right now.

Because there are a lot of small projects. I went for 1 big project/repo

But they also want you to show some pages.

So for example.

I have a javascript project in  /web-development/javascript/project1 which I have to show

and a rails project in /web-development/rails/project1 which I have to show.

As far as I know I can only have on github-pages a repo.

Is there a way I can show both pages even in they both in the master branch and in different directories

Thanks,

Roelof

1 Like

Yes, but on one shared username.github.io domain, for example, my page https://shushugah.github.io is my main one, and maps to a custom domain https://shushugah.com while https://shushugah.github.io/23 links to a different github page at https://2Jews3Opinions.com One side effect of this is that https://shushugah.com/23 also redirects to https://2Jews3Opinions.com

I detail this in my blog post https://medium.com/@shushugah/2-customs-domains-for-2-github-pages-a8a9e77d3e57