Github 页面:当根站点是 jekyll 时如何访问 github 项目页面

Github Pages: How to access github project page when root site is jekyll

我的网站 运行ning 在 Jekyll 上托管在 dashedstripes.github.io(我已经扎根到我自己的域),我想设置另一个存储库作为项目页面,即dashedstripes.github.io/project-name

我已经用 gh-pages 分支设置了一个单独的项目回购,它说它在 dashedstripes.github.io/project-name

上线

但是,因为根站点在 jekyll 上 运行,所以每当我尝试访问该项目时都会收到 404。

这附近有没有?

目前,您在根目录中没有索引页,您得到一个 404。如果您尝试 http://adamgray.so/what-should-i-eat/dist/,您会达到 index.html

您需要在 gh-page 分支的根目录下发布 dist 文件夹内容。