jekyll-github-元数据在本地工作但不在 GitHub

jekyll-github-metadata working locally but not in GitHub

我将 GitHub 页面设置为主页。当我在本地开发时,我使用 github-metadata 来显示有关我的存储库的信息并且它工作正常(我什至上传了 _site 来显示页面的构建方式)。然而,当我将页面推到GitHub时,没有显示信息。

存储库:https://github.com/emilioidk/emilioidk.github.io

宝石文件

source 'https://rubygems.org'
gem 'jekyll-github-metadata'
gem 'github-pages', group: :jekyll_plugins

_config.yml(冗余github信息用于测试)

github_username:  emilioidk
github: emilioidk
repository: emilioidk/emilioidk.github.io
gems: ['jekyll-github-metadata']

编辑: 我尝试从配置文件中删除 github。没有阳性结果。 我尝试从配置文件中删除 Gemfile、Gemfile.lock 和 gems。没有阳性结果。

编辑 :我已经在 https://statiktest.github.io/emilioidk.github.io/GitHub/

分叉了你的存储库

如您所见,我们有 public_repositories : false

我认为这是一个错误,您可以在 https://github.com/jekyll/github-metadata/issues/new

上提出问题

编辑结束/

你的问题出在你身上github: emilioidk。它变为 site.github 并因此覆盖 site.github.

中的 jekyll 元数据

从您的 _config.yml.

中删除 github: emilioidk

本地也是一样的问题。我很惊讶它对你有用。

联系了 GitHub 的支持,这最终是他们的问题,现在已经解决了

Hey Emilio,

Sorry about that, we had a bug on our end that caused the github-metadata gem to stop working for about 40 hours.

It should be working now though.