首页 > 解决方案 > 从新创建的 github 页面获取 304 响应

问题描述

我根据https://docs.github.com/en/free-pro-team@latest/github/working-with-github-pages/getting-started-with-github-pages创建了一个带有 jeyll 的 github 页面

这是我的公开回购https://github.com/MrBuggySan/mrbuggysan.github.io这是 github 页面链接https://mrbuggysan.github.io/

我已经在 gemfile 上设置了 github-pages 依赖项,并且这个相同的 repo 在本地对我有用。我在这里错过了什么吗?

标签: github-pages

解决方案


首先,确保您已将主分支、文件夹 docs 配置为发布 shource

https://docs.github.com/assets/images/help/pages/publishing-source-folder-drop-down.png

其次,在那个 docs 文件夹中,您应该看到 Jekyll 生成的内容:Jekyll 配置docs中的“destination”文件夹。 (就像 Jekyll 自己在构建文档时所做的那样)


推荐阅读