Can I create more than one repository for github pages?

后端 未结 9 661
余生分开走
余生分开走 2020-12-07 08:16

I created a repository for hosting a blog on github.Is there any way that I can create more to host multiple blogs?Am I limited to just one repository for hosting(since

9条回答
  •  抹茶落季
    2020-12-07 08:38

    There is a possibility to host multiple pages within the same repository having sub-pages if you are fine with code duplication.

    The latest version of my website is hosted on http://username.github.io/REPONAME This is a screenshot of the structure of my root repository where I host the latest version of my website:

    Inside folder "2.4.0" I can host a previous version of the same page ,which is then reachable at: http://username.github.io/REPONAME/2.4.0 This is the structure of the folder 2.4.0:

    Using this methodology of sub-pages within a main page, you can host multiple sub-pages within one main page.

提交回复
热议问题