Reputation: 1087
I am testing my github
site with Jekyll, but when I add a new post it is not generating the post in the _posts
folder, so it can't get site.posts
in index.html
.
I had jekyll serve
running in local.
My folder:
The local page:
The local:
However, it works fine on the github
site. So what's the problem?
Upvotes: 2
Views: 1630
Reputation: 591
I had the same problem: I could see my code on github pages, but not locally. The problem seemed to be with incompatibility between jekyll-paginate and the current Rubygems version of Jekyll: 3.4.0.
I uninstalled that version of jekyll with gem uninstall jekyll
and then installed the version used by Github Pages: 3.3.1.
Works like a charm now!
Upvotes: 1
Reputation: 52829
This a Jekyll 3.x behavior. Posts with a date in the future are not published, except if you :
future: true
variable in _config.yml
or
jekyll serve --future
This is not a problem under Jekyll 2.x and Github pages.
Upvotes: 14