New post won't display on jekyll homepage

I’m finding a weird discrepancy between my site when I run it on a local server and when I view it on GitHub Pages. The local file is exactly the same as the one I’ve pushed up to the remote repo, so I don’t understand why they would be displaying differently.

Here is a screenshot of my local server:

From null

And the version on gh-pages:

From jamie-reece.github.io

As you can see, the most recent post shows up on gh-pages, but does not show up on my local server. Has anyone come across this before?

All the code is available on GitHub. If you have any questions, please don’t hesitate to get in touch!

Thanks in advance.

I see 25 March 2019 as the date. To build future-dated posts you need to either use --future switch or set future: true in your config file.

Of course, this is by assuming that you’re in a timezone where the date is still 24 March, 2019

Oh, of course - that was a very silly mistake! I thought it was the 25th. Thanks for letting me know about that switch. I’m sure it will come in handy in the future. Thanks!

1 Like