Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Github Pages showing posts with future date

Tags:

github

jekyll

I have number of posts on _posts. Post file have pattern like below

├── _posts
│   ├── 2016-10-02-SomeContent.md
│   ├── 2016-10-03-AnotherContent.md

On my local machine (ubuntu 16.04 LTS) If I prefix my post file name which future date like 2017-10-03-FutureContent.md the post with future date prefixed is not shown.

I'm using bundle exec jekyll serve to run the project

But when I push it to Github it's visible and shows the posted date as future date.

Using this theme

Why can't I see the post on my local machine but when pushed to Github it is visible?

like image 826
A0__oN Avatar asked Oct 07 '16 03:10

A0__oN


1 Answers

You should serve with:

bundle exec jekyll serve --future

The reason why it's available on GitHub is because: GitHub's pages-gem enables the future flag

like image 77
David Zhang Avatar answered Sep 29 '22 15:09

David Zhang