Local repo not matching GitHub Pages


I normally edit my blog on my local computer and use bundle exec jekyll serve to host it. In my local computer everything looks great, but when I push it to GitHub using push origin master it doesn’t look the same. Here are two examples:

  1. About Me image is missing in my GitHub Page:

  2. The OWASP category is missing the Injection post:

For the first example, I double-checked to make sure that the image directory is the right one in GitHub, and it is, but it’s being displayed as an error in GitHub pages.

In both cases, when I host it from my local computer my About Me image and the Injection post is there in the OWASP category so I’m not sure what the difference is. I tried recloning the repo again, from GitHub to my computer in case I was missing files or something weird was going on, but they’re identical in the code so I’m not sure what’s happening here.

Any suggestions?

Hey @ranne - welcome to the community.

This is typically a mismatch in the version of Jekyll. Github Pages uses Jekyll 3.8.7 and I’m guessing you’re using 4.x locally.

To ensure the versions match, I highly recommend using the github-pages gem.

Docs here: