【问题标题】:Github Pages: How to access github project page when root site is jekyllGithub Pages:当根站点是 jekyll 时如何访问 github 项目页面
【发布时间】:2016-10-14 22:15:34
【问题描述】:

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

我已经设置了一个带有 gh-pages 分支的单独项目 repo,它说它在 dashedstripes.github.io/project-name 上运行

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

这里面还有吗?

【问题讨论】:

    标签: github jekyll github-pages


    【解决方案1】:

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

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

    【讨论】:

    • 谢谢!我对 gh-pages 很陌生,我知道这一定很简单!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-07-31
    • 2020-08-10
    • 1970-01-01
    • 2017-08-19
    • 1970-01-01
    相关资源
    最近更新 更多