我最近开始使用 github 页面,到目前为止我使用默认的 index.html 作为我的主页。如何使用另一个页面作为我的默认页面?例如,如果在我的 gh-pages 分支中,我的 html 位于文件夹 src/中。如何将 ./src/index.html 设置为默认值而不是 ./index.html?
最佳答案
创建虚拟 index.html 并将其放在标题中
<meta http-equiv="refresh" content="0; url=http://mysite.github.io/folder/index.html" />
更改 http://mysite.github.io/folder/index.html到您想要的网址。
关于github - 将 index.html 以外的内容用于 Github 页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27330188/