【问题标题】:Jekyll on github pages showing error: 404 Index.html not found (window)?github页面上的 Jekyll 显示错误:404 Index.html not found (window)?
【发布时间】:2015-06-04 21:17:07
【问题描述】:

当我将代码推送到 github 并添加 gh-pages 分支时,我在窗口 7 中使用 Jekyll 建立了一个静态网站,它显示 404 not found 错误 index.html not found。 虽然我已经在我的根目录中添加了 index.html。 github回购: github Repo link

https://github.com/jazib-bashir/Runjekyll

Github 页面链接Github page Runjekyll

http://jazib-bashir.github.io/Runjekyll

我更重要的是:我使用 Rouge gem 作为荧光笔而不是 Pygments..

【问题讨论】:

    标签: git github jekyll github-pages jekyll-bootstrap


    【解决方案1】:

    您正在使用 rouge,但 github 页面 (see dependency versions) 仍然不支持它。这会导致构建失败。你可能会收到来自 Github 的邮件。

    如果您希望 Github 构建您的网站,则必须改用 pygments

    另一种解决方案是在本地构建并将_site 内容推送到github。 See my workflow description here

    【讨论】:

    • 好的,我尝试使用 paygments 感谢您指出这一点。请详细解释第二个解决方案:我在本地构建并在根文件夹中生成 _site 文件夹,从 localhost 向我展示博客如何将内容放到 github??
    猜你喜欢
    • 2015-05-31
    • 2018-12-03
    • 2021-11-29
    • 2021-03-07
    • 1970-01-01
    • 1970-01-01
    • 2022-01-01
    • 1970-01-01
    • 2021-08-25
    相关资源
    最近更新 更多