New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Posts, pages are visible locally, not in github pages #2058

Closed
graviraja opened this Issue Feb 9, 2019 · 2 comments

Comments

Projects
None yet
2 participants
@graviraja
Copy link

graviraja commented Feb 9, 2019

Hi, I am new to github pages, jekyll. Excuse me, if this is a silly mistake.
I am using the minimal-mistakes for hosting my blog.
I have added a post. It is visible in my local machine. When i push the code, the page (or) changes are not reflecting in the github page. Please help me.

github page link : https://graviraja.github.io/
github code link : https://github.com/graviraja/graviraja.github.io

github page:
screen shot 2019-02-10 at 12 10 21 am

local machine :
screen shot 2019-02-10 at 12 09 09 am
screen shot 2019-02-10 at 12 09 19 am

Thanks, in advance.

@mmistakes

This comment has been minimized.

Copy link
Owner

mmistakes commented Feb 9, 2019

As far as I can tell you have things setup correctly. The fact that it works locally and not on GitHub Pages tells me there's something going on there and not theme related.

They might be caching the old version. I do notice you are commiting _site, vendor/, and a bunch of Jekyll cache files and folderd that you probably shouldn't. That might be confusing GH Pages when you push commits.

I'd .gitignore

  • _site
  • vendor
  • .bundle

Then remove minimal-mistakes-jekyll.gemspec as that's for the theme gem and not something you want in your repo. And then remove Gemfile and Gemfile.lock, and replace with the correct Gemfile (See docs for remote theme instructions)

Then run bundle update and push all that up.

@graviraja

This comment has been minimized.

Copy link
Author

graviraja commented Feb 9, 2019

Thank you for the quick reply. After removing the vendor, it worked.

@graviraja graviraja closed this Feb 9, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment