无法构建到 Github 个页面

Unable to build to Github Pages

我有一个 Jekyll 博客,可以使用 bundle exec jekyll serve 在本地构建,但无法在 Github 页面上构建。我分叉了一个 theme, followed the setup instructions 但无法弄清楚问题是什么。

错误消息没有提供任何详细信息:

The page build failed for the `master` branch with the following error:

Page build failed. For more information, see https://help.github.com/articles/troubleshooting-github-pages-builds/
.

For information on troubleshooting Jekyll see:

  https://help.github.com/articles/troubleshooting-jekyll-builds

我仔细阅读了他们的每条建议,none 似乎适用于我的情况。

我的帐户和电子邮件已通过验证,我已经从中构建了其他几个 Github 页面,没有任何问题。

我使用的唯一插件是:

gems:
  - jekyll-sitemap
  - jekyll-paginate
  - jekyll-gist
  - jekyll-feed

这些都是官方支持的。

存储库中的所有文件都约为 9 MB,远低于 1 GB 的限制。

没有覆盖 _config.yml 中的 source

我是从 master 分支构建的,所以它与丢失的 /docs 文件夹无关。

我认为我没有使用任何子模块。

我尝试将 _config.yml 中的 URL 留空,将其设为 https://<user_ID>/<repo_name>/,并将其设为 https://<user_ID>/,baseurl 为 <repo_name>/,none 其中有效。

我可以尝试找出问题所在吗?

在您的标题中您有:

title:            Julius' Site

用双引号将其括起来以将其正确处理为字符串

title:            "Julius' Site"

然后修正网址:

url: "https://jss367.github.io/"
baseurl: "/hpstr-jekyll-theme"

更新

生成 feed.xml 的插件期望前面内容帖子中的 image 元素仅指定图像文件名,但您的 repo 中有更多键:

image:
  feature: abstract-3.jpg
  credit: dargadgetz
  creditlink: http://www.dargadgetz.com/ios-7-abstract-wallpaper-pack-for-iphone-5-and-ipod-touch-retina/

应该是:

image:
  feature: abstract-3.jpg

解决办法是用image按照上面的方法修复帖子,如果你想把元数据附加到图片上,使用jekyll数据文件。

或简单删除:

_posts/2011-03-10-sample-post.md
_posts/2012-05-22-readability-post.md
_posts/2013-05-23-readability-feature-post.md
_posts/2013-08-16-code-highlighting-post.md