emiliolcc emiliolcc - 1 year ago 87
Ruby Question

jekyll-github-metadata working locally but not in GitHub

I have my GitHub page set up as a homepage. When I develop locally I use github-metadata for displaying information about my repositories and it works fine (I even uploaded _site to show how the page is built). Nevertheless when I pushed the page to GitHub, the information is not being displayed.

Repository: https://github.com/emilioidk/emilioidk.github.io


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

_config.yml (redundant github information for testing)

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

I have tried removing github from config file. No positive results.
I have tried removing Gemfile, Gemfile.lock and gems from config file. No positive result.

Answer Source

Edit : I've forked your repository at https://statiktest.github.io/emilioidk.github.io/GitHub/

As you can see we have public_repositories : false.

I think it's a bug and you can open an issue on https://github.com/jekyll/github-metadata/issues/new

end edit /

You problem is with you github: emilioidk. It becomes site.github and thus overrides jekyll metadatas in site.github.

Remove github: emilioidk from your _config.yml.

And the problem is the same locally. I'm surprised that it works for you.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download